Oauth refresh token provider error in ValidateClientAuthentication

587 Views Asked by At

I apologize for my English. I presented the following problem. I'm working with C # asp.net MVC 5.

I am implementing a server with the OAuth 2 bearer token and token refresh. When requesting the access token returns me refresh token and token with client_credential grant_type, client_id and client_secret. The problem is to apply the new refresh token from token. When I shipping grant_type refresh_token and refresh_token parameter as the first method is called ValidateClientAuthentication. but as shipping and client_secret client_id not validate me because I check the existence of an object in the database by these parameters. What am I doing wrong. thank you very much

1

There are 1 best solutions below

2
On BEST ANSWER

I move th secret validation to GrantClientCredentials method and it´s work. Thanks for all