import { GrantType } from "https://deno.land/x/authlete_deno@v1.2.10/src/type/grant_type.ts";
Values for grant_type
.
Static Properties
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.
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.
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.
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.
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.
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.
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.
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.