- Forums
- >
- API Platform
- >
- Re: Using Auth refresh token with .NET
- Thread RSS
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Favorite
- Subscribe
Re: Using Auth refresh token with .NET
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.05.2012 09:39 AM
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?
Re: Using Auth refresh token with .NET
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.05.2012 11:55 AM
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
