grantType (property)
Specifies which protocol flow should be used to authorize the user.
Syntax
@property (nonatomic,readwrite,assign,getter=grantType,setter=setGrantType:) int grantType; - (int)grantType; - (void)setGrantType:(int)newGrantType;
/* Possible Values */
OGT_AUTHORIZATION_CODE(0),
OGT_IMPLICIT(1),
OGT_PASSWORD_CREDENTIALS(2),
OGT_CLIENT_CREDENTIALS(3)
public var grantType: OauthclientGrantTypes { get {...}
set {...} }
public enum OauthclientGrantTypes : Int32 { case ogtAuthorizationCode = 0 case ogtImplicit = 1 case ogtPasswordCredentials = 2 case ogtClientCredentials = 3 }
Default Value
0
Remarks
Use this property to specify the authorization protocol to use.
ogtAuthorizationCode | 0 | Authorization Code flow should be used (see RFC 6749 Section 1.3.1) |
ogtImplicit | 1 | Implicit flow should be used (see RFC 6749 Section 1.3.2) |
ogtPasswordCredentials | 2 | Resource Owner Password Credentials flow should be used (see RFC 6749 Section 1.3.3) |
ogtClientCredentials | 3 | Client Credentials flow should be used (see RFC 6749 Section 1.3.4) |