Class ResourceOwnerPwdCredentialsAuthorizer
Definition
- Assembly:
- Tizen.Account.OAuth2.dll
The ResourceOwnerPwdCredentialsAuthorizer is used to obtain access tokens using Resource Owner Password Credentials Grant flow as described at https://tools.ietf.org/html/rfc6749#section-4.3
[Obsolete]
public class ResourceOwnerPwdCredentialsAuthorizer : Authorizer, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
View SourceResourceOwnerPwdCredentialsAuthorizer()
The constructor
Declaration
[Obsolete]
public ResourceOwnerPwdCredentialsAuthorizer()
Methods
View SourceAuthorizeAsync(AuthorizationRequest)
Authorization not supported through this API for this flow.
Declaration
[Obsolete]
public Task<AuthorizationResponse> AuthorizeAsync(AuthorizationRequest request)
Parameters
Type | Name | Description |
---|---|---|
AuthorizationRequest | request |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<TResult><AuthorizationResponse> |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the operation is not supported |
GetAccessTokenAsync(TokenRequest)
Retrieves access token by sending resource owner's password credentials. The authroization request parameters should be as defined in https://tools.ietf.org/html/rfc6749#section-4.3.2
Declaration
[Obsolete]
public Task<TokenResponse> GetAccessTokenAsync(TokenRequest request)
Parameters
Type | Name | Description |
---|---|---|
TokenRequest | request | The token request ResourceOwnerPwdCredentialsTokenRequest |
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 |
Implements
System.IDisposable