Sabby62
Sabby62

Reputation: 1717

Invalid_Grant error when using Refresh Token

I am using IdentityServer3's Hybrid Flow. I have enabled the offline_access scope inorder to get refresh token. When my access token expires, I am calling core/connect/token endpoin. I am passing client_id, client_secret, refresh_token and grant_type (= refresh_token) as part of body. I am getting invalid_grant error.

Upvotes: 2

Views: 1870

Answers (1)

Pravin
Pravin

Reputation: 979

Make sure that the Client configuration should have "RefreshTokenExpiration" attribute set as TokenExpiration.Absolute and "RefreshTokenUsage" attribute is set to "OneTimeOnly". This should make it work !

Upvotes: 2

Related Questions