Class CodeGrantAuthorizer
Definition
- Assembly:
- Tizen.Account.OAuth2.dll
The CodeGrantAuthorizer is used to obtain access tokens and refresh tokens using Authorization Code Grant flow as described at https://tools.ietf.org/html/rfc6749#section-4.1
public class CodeGrantAuthorizer : Authorizer, IDisposable
- Inheritance
- Implements
-
System.
IDisposable
Constructors
View SourceCodeGrantAuthorizer()
The constructor
Declaration
public CodeGrantAuthorizer()
Methods
View SourceAuthorizeAsync(AuthorizationRequest)
Retrieves authorization code asynchronously. The authroization request parameters should be as defined in https://tools.ietf.org/html/rfc6749#section-4.1.1
Declaration
[Obsolete("This API is deprecated since API Level 5, no longer supported")]
public override Task<AuthorizationResponse> AuthorizeAsync(AuthorizationRequest request)
Parameters
Type | Name | Description |
---|---|---|
Authorization |
request | The authorization request Code |
Returns
Type | Description |
---|---|
System. |
The response containing authorization code. |
Overrides
Exceptions
Type | Condition |
---|---|
System. |
Thrown when method failed due to invalid argumets |
OAuth2Exception | Thrown when method fails due to server error |
ClearCache()
Clear the cache
Declaration
[Obsolete("This API is deprecated since API Level 5, no longer supported")]
public void ClearCache()
ClearCookies()
Clears the cookies
Declaration
[Obsolete("This API is deprecated since API Level 5, no longer supported")]
public void ClearCookies()
GetAccessTokenAsync(TokenRequest)
Retrieves access token by exchanging authorization code received using Authorize
Declaration
public override Task<TokenResponse> GetAccessTokenAsync(TokenRequest request)
Parameters
Type | Name | Description |
---|---|---|
Token |
request | The token request Code |
Returns
Type | Description |
---|---|
System. |
The response containing access token. |
Overrides
Exceptions
Type | Condition |
---|---|
System. |
Thrown when method failed due to invalid argumets |
OAuth2Exception | Thrown when method fails due to server error |