Skip to main content

GrantType

Enumeration that reports the list of supported grant types, either primarily taken from the supported specifications, or fallback values when an unknown value is returned from the server.

Index

Enumeration Members

authorizationCode

authorizationCode: authorization_code

deviceCode

deviceCode: urn:ietf:params:oauth:grant-type:device_code

implicit

implicit: implicit

Implicit flow.

While the implicit flow is deprecated, and not supported by this SDK, Authorization Servers may still include this value in its responses, so it's important to include it as a possible value.

oob

oob: urn:okta:params:oauth:grant-type:oob

oobMFA

oobMFA: http://auth0.com/oauth/grant-type/mfa-oob

Out-of-Band authentication, used as a secondary MFA factor.

Since Auth0 already has a similar capability, this API reuses the same grant type value. This value may change in the future, if a different URN becomes available.

other

other:

Other raw value supplied by the server that isn't represented by other enumeration values indicated above.

otp

otp: urn:okta:params:oauth:grant-type:otp

otpMFA

otpMFA: http://auth0.com/oauth/grant-type/mfa-otp

One-Time-Code authentication, used as a secondary MFA factor.

Since Auth0 already has a similar capability, this API reuses the same grant type value. This value may change in the future, if a different URN becomes available.

password

password: password

refreshToken

refreshToken: refresh_token

tokenExchange

tokenExchange: urn:ietf:params:oauth:grant-type:token-exchange

webAuthn

webAuthn: urn:okta:params:oauth:grant-type:webauthn

webAuthnMFA

webAuthnMFA: urn:okta:params:oauth:grant-type:mfa-webauthn