Skip to main content
Module

x/authlete_deno/mod.ts>GrantType

Authlete Library for Deno
Go to Latest
class GrantType
Re-export
import { GrantType } from "https://deno.land/x/authlete_deno@v1.2.9/mod.ts";

Values for grant_type.

Static Properties

readonly
AUTHORIZATION_CODE: GrantType

authorization_code (1), a grant_type to request an access token and/or an ID token, and optionally a refresh token, using an authorization code.

For more details, see the following links.

readonly
CIBA: GrantType

urn:openid:params:grant-type:ciba (6), a grant_type to request an ID token, an access token, and optionally a refresh token, using a CIBA flow.

CIBA is short for Client Initiated Backchannel Authentication.

readonly
CLIENT_CREDENTIALS: GrantType

client_credentials (4), a grant_type to request an access token using a client's credentials.

For more details, see RFC 6749 (OAuth 2.0), 4.4.2. Access Token Request.

readonly
DEVICE_CODE: GrantType

urn:ietf:params:oauth:grant-type:device_code (7), a grant_type to request an access token and optionally a refresh token, using Device Flow.

readonly
IMPLICIT: GrantType

implicit (2), representing Implicit Flow.

This is not a value for grant_type but listed in this enum because OpenID Connect Dynamic Client Registration 1.0 uses 'implicit' as a value for grant_types of client metadata.

For more details, see OpenID Connect Dynamic Client Registration 1.0, 2. Client Metadata.

readonly
PASSWORD: GrantType

password (3), a grant_type to request an access token using a resource owner's username and password.

For more details, see RFC 6749 (OAuth 2.0), 4.3.2. Access Token Request.

readonly
REFRESH_TOKEN: GrantType

refresh_token (5), a grant_type to request an access token, and optionally an ID token and/or a refresh token, using a refresh token.

For more details, see the following links.

readonly
TOKEN_EXCHANGE: GrantType

urn:ietf:params:oauth:grant-type:token-exchange (8), a grant_type for token exchange.

For more details, see RFC 8693 OAuth 2.0 Token Exchange.