locked
How to debug token endpoint in WebAPI2 RRS feed

  • Question

  • User1005437588 posted

    I don't see any code that i can set breakpoint and debug login 

    Friday, July 17, 2015 10:39 PM

Answers

  • User1005437588 posted

    So the solution is to debug GrantResourceOwnerCredentials method in Providers/ApplicationOAuthProvider.cs

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, July 17, 2015 11:36 PM

All replies

  • User2024324573 posted

    I don't see any code that i can set breakpoint and debug login

    You can user fiddler or other browser debugger where you can easily see the token.

    Hope this will help.

    Friday, July 17, 2015 10:52 PM
  • User1005437588 posted

    no i have 500 error and need to set debugging point 

    Friday, July 17, 2015 10:55 PM
  • User2024324573 posted

    Are you using any front-end tools?

    Friday, July 17, 2015 10:56 PM
  • User1005437588 posted

    i am not sure you understand what i am asking - I want to debug WebAPI when the request comes like i can do with other controllers that return data

    please stop suggesting to use Firebug or fiddler that's not relevant here 

    Friday, July 17, 2015 11:02 PM
  • User2024324573 posted

    Could you please share your API Controller action? 

    Friday, July 17, 2015 11:04 PM
  • User1005437588 posted

    just create a standard WebAPI 2 project and try to debug login i.e. api/token

    Friday, July 17, 2015 11:05 PM
  • User2024324573 posted

    Maybe this will be helpful: http://stackoverflow.com/questions/24692959/debugging-webapi2-login-token-endpoint

    Thanks,

    Friday, July 17, 2015 11:11 PM
  • User1005437588 posted

    no, just stop posting please, you don't know anything

    I found GrantResourceOwnerCredentials that you can debug, will update later

    Friday, July 17, 2015 11:14 PM
  • User1005437588 posted

    So the solution is to debug GrantResourceOwnerCredentials method in Providers/ApplicationOAuthProvider.cs

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, July 17, 2015 11:36 PM