- 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
Using Auth refresh token with .NET
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.03.2012 01:15 PM
I can not find any referens or a sample how to get new access token using refesh token using .NET SDK. or any other SDK, anything.
Re: Using Auth refresh token with .NET
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.03.2012 01:37 PM
Hello,
There's a sample request towards the bottom of this page:
http://devconnect-api.att.com/docs/oauth-v1/obtain
That shows what you need to pass into the request.
Cheers,
--brett
Re: Using Auth refresh token with .NET
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.03.2012 01:47 PM
The 'ExpiresIn' value in OAuthToken. Is it seconds, minutes, ticks?
Re: Using Auth refresh token with .NET
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.03.2012 02:09 PM
I'm using AT&T ATT_MSSDK .NET lib. I do not see any params for Grant_type=refresh_token. How do I set that grant type in?
List<RequestFactory.ScopeTypes> scopes = new List<RequestFactory.ScopeTypes>();
scopes.Add(RequestFactory.ScopeTypes.TerminalLocat
RequestFactory request = new RequestFactory(ApiSettings.EndPont, ApiSettings.Key, ApiSettings.Secret, scopes, ApiSettings.Redirect, null);
Re: Using Auth refresh token with .NET
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.03.2012 03:24 PM
Hello,
The ExpiresIn value is in seconds. You can refer here for documentation on the parameters:
http://devconnect-api.att.com/docs/oauth-v1/obtain
Cheers,
--brett
Re: Using Auth refresh token with .NET
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.03.2012 03:26 PM
Hello,
The SDK has the access_token and refresh_token built into the service request, so that it is abstracted from the developer. If you need direct access to these requests, you would need to contruct your own request using the REST API. More info on the REST API can be found here:
http://devconnect-api.att.com/docs/oauth-v1/obtain
Cheers,
--brett
Re: Using Auth refresh token with .NET
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.04.2012 07:36 AM
Bret,
I just need to know how to use refresh token to get new access token. My scenario: I've got access token yesterday, today when i use that token i'm getting 'unauthorized' exception. My question is : How do i get new access token?
thanks.
Re: Using Auth refresh token with .NET
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.04.2012 08:57 AM
How are you getting the initial access_token?
Re: Using Auth refresh token with .NET
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.04.2012 09:32 AM
List<RequestFactory.ScopeTypes> scopes = new List<RequestFactory.ScopeTypes>();
scopes.Add(RequestFactory.ScopeTypes.TerminalLocat
RequestFactory request = new RequestFactory(ApiSettings.EndPont, ApiSettings.Key, ApiSettings.Secret, scopes, ApiSettings.Redirect, null);
request.GetAuthorizeCredentials(code);
Re: Using Auth refresh token with .NET
- Mark as New
- Favorite
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Flag as Inappropriate
04.04.2012 04:13 PM
Oleg,
To get new access_token, you have to re-initialize request factory and follow the steps you did already.
There's no explicit method to get access_token from refresh_token.
Hope that helps,
--brett
