Reply to Post
Expert Spy
olegk
7 Posts
Member since ‎10.11.2011

Re: Using Auth refresh token with .NET

Brett,

 

But in order to do this I need auth code (which I do not have at that point):

request.GetAuthorizeCredentials(code);

Does it mean that using NET SDK there is NO way to get new access token if I have a refresh token? Every time application needs to get explicit user's persmission (with redirect to auth.api.att.com and PIN in SMS message) if its more than 2 hourse since last permission request?

 

 

Moderator
bs595r
146 Posts
Member since ‎01.13.2012

Re: Using Auth refresh token with .NET

Oleg,

 

The RequestFactory uses the code to retrieve the access_token, expires_in, and refresh_token.  Every time a method is called the RequestFactory checks to see if the access_token is still valid.  If it isn’t then it uses the refresh_token to get a new access_token.

 

HTH,

     --brett

  • of 2