GrantType StructureNemiro.OAuth
Represents the authorization grant type.

Namespace: Nemiro.OAuth
Assembly: Nemiro.OAuth (in Nemiro.OAuth.dll) Version: 1.9.4.725 (1.9.4.725)
Syntax

public struct GrantType

The GrantType type exposes the following members.

Methods

  NameDescription
Public methodStatic memberCreate
Initializes a new GrantType instance with a specified value.
Public methodEquals (Inherited from ValueType.)
Public methodGetHashCode (Inherited from ValueType.)
Public methodGetType (Inherited from Object.)
Public methodToString
Returns a string that represents the current GrantType.
(Overrides ValueType ToString .)
Top
Operators

  NameDescription
Public operatorStatic member (String to GrantType)
Creates a new GrantType instance from String.
Public operatorStatic member (GrantType to String)
Converts the GrantType to String.
Top
Fields

  NameDescription
Public fieldStatic memberAuthorizationCode
Using an authorization code to confirm the identity (grant type is authorization_code).
Public fieldStatic memberClientCredentials
Using basic authorization with username and password (grant type is client_credentials).
Public fieldStatic memberPassword
Using username and password (grant type is password).
Public fieldStatic memberRefreshToken
Using a token to refreshing the access token (grant type is refresh_token).
Top
Properties

  NameDescription
Public propertyIsAuthorizationCode
Gets a value indicating whether the current value is authorization_code or not.
Public propertyIsClientCredentials
Gets a value indicating whether the current value is client_credentials or not.
Public propertyIsPassword
Gets a value indicating whether the current value is password or not.
Top
See Also