none
Owin Refresh Access Token Using Refresh Token

    Question

  • Hi,

    I had developed Owin Authentication in my project. I use Refresh token Id Globally for each user to grant access token.
    Whenever user logs in it generate access token against given refreshTokenId and send response back to user.
    when I try to refresh accessToken it calls "ReceiveAsync" method of "RefreshTokenProvider" where I Deserialize the token using following code context.DeserializeTicket(refreshToken.ProtectedTicket);
    after execution of this method it calls "GrantRefreshToken" of "AuthorizationServerProvider" where it creates new accesstoken and this token is attached with refresh token and send back to user.
    it works fine if I try to refresh token before AccessToken gets expired.
    But When AccessToken gets expired and I try to refresh token it calls "ReceiveAsync" method of "RefreshTokenProvider" and deserialize token but after this method execution completion it did not calls "GrantRefreshToken" of "AuthorizationServerProvider".

    Note : I had set refreshtoken  expiry date to null so that it will never expired but accessToken expiry time is 20 min.

    any help would be appreciated.


    Thanks
    Friday, March 3, 2017 12:49 PM

Answers