Class ImplicitGrantAuthorizer

Definition

Namespace:
Tizen.Account.OAuth2
Assembly:
Tizen.Account.OAuth2.dll

The ImplicitGrantAuthorizer is used to obtain access tokens using Implicit Grant flow as described at https://tools.ietf.org/html/rfc6749#section-4.2

C#
Copy
public class ImplicitGrantAuthorizer : Authorizer, IDisposable
Inheritance
object
ImplicitGrantAuthorizer
Implements
System.IDisposable

Constructors

View Source

ImplicitGrantAuthorizer()

The constructor

Declaration
C#
Copy
public ImplicitGrantAuthorizer()

Methods

View Source

AuthorizeAsync(AuthorizationRequest)

Retrieves access token asynchronously. The authroization request parameters should be as defined in https://tools.ietf.org/html/rfc6749#section-4.2.1

Declaration
C#
Copy
[Obsolete("This API is deprecated since API Level 5, no longer supported")] public virtual Task<TokenResponse> AuthorizeAsync(AuthorizationRequest request)
Parameters
Type Name Description
AuthorizationRequest request

The authorization request ImplicitGrantAuthorizationRequest

Returns
Type Description
System.Threading.Tasks.Task<TResult><TokenResponse>

The response containing access token.

Exceptions
Type Condition
System.ArgumentException

Thrown when method failed due to invalid argumets

OAuth2Exception

Thrown when method fails due to server error

View Source

GetAccessTokenAsync(TokenRequest)

Access token can be retreived implicitly using AuthorizeAsync(AuthorizationRequest) in this flow.

Declaration
C#
Copy
public override Task<TokenResponse> GetAccessTokenAsync(TokenRequest request)
Parameters
Type Name Description
TokenRequest request
Returns
Type Description
System.Threading.Tasks.Task<TResult><TokenResponse>
Overrides
Exceptions
Type Condition
System.InvalidOperationException

Thrown when the operation is not supported

View Source

RefreshAccessTokenAsync(RefreshTokenRequest)

Refreshing access token is not supported in this flow.

Declaration
C#
Copy
public override Task<TokenResponse> RefreshAccessTokenAsync(RefreshTokenRequest request)
Parameters
Type Name Description
RefreshTokenRequest request
Returns
Type Description
System.Threading.Tasks.Task<TResult><TokenResponse>
Overrides
Exceptions
Type Condition
System.InvalidOperationException

Thrown when the operation is not supported

Implements

System.IDisposable