Represents the authorization grant type.
Namespace: Nemiro.OAuthAssembly: Nemiro.OAuth (in Nemiro.OAuth.dll) Version: 1.9.4.725 (1.9.4.725)
Syntax
The GrantType type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() | Create |
Initializes a new GrantType instance with a specified value.
|
![]() | Equals | (Inherited from ValueType.) |
![]() | GetHashCode | (Inherited from ValueType.) |
![]() | GetType | (Inherited from Object.) |
![]() | ToString |
Returns a string that represents the current GrantType.
(Overrides ValueType ToString .) |
Operators
Name | Description | |
---|---|---|
![]() ![]() | (String to GrantType) |
Creates a new GrantType instance from String.
|
![]() ![]() | (GrantType to String) |
Converts the GrantType to String.
|
Fields
Name | Description | |
---|---|---|
![]() ![]() | AuthorizationCode |
Using an authorization code to confirm the identity (grant type is authorization_code).
|
![]() ![]() | ClientCredentials |
Using basic authorization with username and password (grant type is client_credentials).
|
![]() ![]() | Password |
Using username and password (grant type is password).
|
![]() ![]() | RefreshToken |
Using a token to refreshing the access token (grant type is refresh_token).
|
Properties
Name | Description | |
---|---|---|
![]() | IsAuthorizationCode |
Gets a value indicating whether the current value is authorization_code or not.
|
![]() | IsClientCredentials |
Gets a value indicating whether the current value is client_credentials or not.
|
![]() | IsPassword |
Gets a value indicating whether the current value is password or not.
|
See Also