Authn API
- production
- staging
- Authentication
- Basic
- Contact
- authn@masmovil.com
About this API
This is the API for authn in MM
Security:
| Paths | Authorization header |
|---|---|
| /oauth/token | Basic <base64(client_id:client_secret)> OR JWT client assertion (private_key_jwt) |
JWT Client Authentication:
Clients can authenticate using signed JWT assertions instead of client secrets by providing:
client_assertion_type:urn:ietf:params:oauth:client-assertion-type:jwt-bearerclient_assertion: A signed JWT containingiss,sub,aud,jti, andexpclaims
Resources 6
- TokenInfo 1 endpoint
API getting token claims once we have an accessToken
- OAuth2 7 endpoints
OAuth2 authentication endpoints
- POST Generate an access_token
/oauth /token - GET Get authentication page
/oauth /authorize - GET Logout endpoint
/oauth /logout - POST Logout endpoint by API
/oauth /logout - POST Token Revocation (RFC 7009)
/oauth /revoke
- POST Generate an access_token
- Magic Links 1 endpoint
Retrieve access_token without credentials, only with a magic link
- CIBA 1 endpoint
OpenID Connect Client-Initiated Backchannel Authentication Flow
- WebAuthn 4 endpoints
- Device Code 1 endpoint
Authn API
- production
- staging
- Authentication
- Basic
- Contact
- authn@masmovil.com
About this API
This is the API for authn in MM
Security:
| Paths | Authorization header |
|---|---|
| /oauth/token | Basic <base64(client_id:client_secret)> OR JWT client assertion (private_key_jwt) |
JWT Client Authentication:
Clients can authenticate using signed JWT assertions instead of client secrets by providing:
client_assertion_type:urn:ietf:params:oauth:client-assertion-type:jwt-bearerclient_assertion: A signed JWT containingiss,sub,aud,jti, andexpclaims
Resources 6
- TokenInfo 1 endpoint
API getting token claims once we have an accessToken
- OAuth2 7 endpoints
OAuth2 authentication endpoints
- POST Generate an access_token
/oauth /token - GET Get authentication page
/oauth /authorize - GET Logout endpoint
/oauth /logout - POST Logout endpoint by API
/oauth /logout - POST Token Revocation (RFC 7009)
/oauth /revoke
- POST Generate an access_token
- Magic Links 1 endpoint
Retrieve access_token without credentials, only with a magic link
- CIBA 1 endpoint
OpenID Connect Client-Initiated Backchannel Authentication Flow
- WebAuthn 4 endpoints
- Device Code 1 endpoint
TokenInfo
check token claims
/tokeninfo This endpoint returns a 200 status code and token claims when the token is correct and is not expired. Also provides a claims JSON as response.
Request body application/json Required
-
access_tokenstring RequiredA valid access token provided by authn
Responses
Correct token
-
tidstring Requiredtid
-
cidstring Requiredcid
-
scopestring RequiredScopes
-
strengthstringdescribes token level of security
-
expinteger -
audstring -
iatstringissued at
-
issinteger -
substringsubject
-
preferred_usernamestringuser_name
-
tenantsstring -
tenants_translationobject[]-
tenant_idstringInternal id
-
orgstringpublic name
-
-
groupsstring -
rolesstring -
permissionsstring -
family_namestring -
given_namestring -
require_password_changeboolean -
businessobject | nullOptional business-specific data associated with the token
object | null
invalid_token
No body.
OAuth2
Generate an access_token
/oauth /token Returns an access token that allows request to MasStack APIs.
Header parameters
X-User-Agent-AliasstringAlias of the device obtaining the token
Request body application/x-www-form-urlencoded
-
grant_typestring RequiredGrant type of token
Show 9 values Hide 9 values
authorization_codepasswordrefresh_tokenurn:ietf:params:oauth:grant-type:jwt-bearerurn:masstack:params:oauth:grant-type:magic-linkurn:masstack:params:oauth:grant-type:passwordlessurn:masstack:params:oauth:grant-type:webauthnurn:openid:params:grant-type:cibaurn:ietf:params:oauth:grant-type:device_code
-
scopestringScope of permissions
-
usernamestringUsername of final customers (required for grant_type=password)
-
passwordstringPassword of final customers (required for grant_type=password)
-
refresh_tokenstringIs a signed JWT whose main goal is to obtain a new access_token without repeating customer authentication once the user has an active session.
-
statestringCSRF token used in the authorization request (for authorization_code and implicit flows)
-
codestringAuthorization code (required for authorization_code flow)
-
code_verifierstringCode challenge value generated by the client in the authorization request (required for authorization_code flow)
-
assertionstringAssertion with which to get an access_token (required for grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer)
-
tokenstringMagic link token (required for grant_type=urn:masstack:params:oauth:grant-type:magic-link)
-
otpstringOne time password token (required for grant_type=urn:masstack:params:oauth:grant-type:passwordless)
-
auth_req_idstringAuthentication request ID (required for grant_type=urn:openid:params:grant-type:ciba)
-
client_idstringThe identifier of the client representing the app. (required for grant_type=urn:ietf:params:oauth:grant-type:device_code)
-
device_codestringDevice Code Authentication request ID (required for grant_type=urn:ietf:params:oauth:grant-type:device_code)
-
subject_tokenstringRepresents the identity of the party on behalf of whom the token is being requested while the actor_token represents the identity of the party to whom the access rights of the issued token are being delegated. (required for grant_type=urn:ietf:params:oauth:grant-type:token-exchange)
-
subject_token_typestringIndicates the type of the security token in the subject_token parameter (required for grant_type=urn:ietf:params:oauth:grant-type:token-exchange)
-
actor_tokenstringRepresents the identity of the acting party. Typically, this will be the party that is authorized to use the requested security token and act on behalf of the subject. (used for grant_type=urn:ietf:params:oauth:grant-type:token-exchange)
-
actor_token_typestringIndicates the type of the security token in the actor_token parameter. This is REQUIRED when the actor_token parameter is present in the request but MUST NOT be included otherwise. (used for grant_type=urn:ietf:params:oauth:grant-type:token-exchange)
-
resourcestringRFC 8707 — The URI of the resource server where the requested access token will be used. Supported for grant types: password, client_credentials, authorization_code, urn:openid:params:grant-type:ciba, urn:ietf:params:oauth:grant-type:device_code. When provided and the client has allowed_resources configured, the issued token's aud claim will be set to this value instead of the default application issuer. Must be an absolute URI without a fragment component. Not supported for refresh_token (resource from the original grant is preserved) or token-exchange.
-
client_assertion_typestringThe format of the assertion as defined by the authorization server. The value must be urn:ietf:params:oauth:client-assertion-type:jwt-bearer when using JWT client authentication (private_key_jwt).
This parameter is used together with client_assertion to authenticate the client using a signed JWT instead of client_secret.
-
client_assertionstringA single JWT that contains the client authentication information. The JWT must be signed with the client's private key and contain the following claims:
- iss: Client ID
- sub: Client ID
- aud: Token endpoint URL
- jti: Unique identifier for the JWT
- exp: Expiration time
This parameter is used together with client_assertion_type for JWT client authentication (private_key_jwt) as an alternative to Basic authentication.
Responses
OK
-
access_tokenstring RequiredA token used by the client to make authenticated requests on behalf of the resource owner
-
scopestringScopes
-
expires_ininteger -
token_typestring Required -
refresh_tokenstringA token used by the client to obtain a new access token without having to involve the resource owner.
Bad Request
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Unauthorized
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Too Many Login Attempts Error
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Response Headers
Cache-ControlstringThe authorization server MUST include the HTTP "Cache-Control" response header field with a value of "no-store" in any response containing tokens, secrets, or other sensitive information.
OAuth2
Get authentication page
/oauth /authorize Logs in the user or redirects it to a page to authenticate itself
Query parameters
client_idstringRequiredThe identifier of the client representing the app.
response_typestringRequiredWhich in a basic authorization code flow request should be code. Authn only support code
redirect_uristringShould be the HTTP endpoint on your server that will receive the response from Authn. The value must exactly match one of the authorized redirect URIs for the OAuth 2.0 client, which you configured in the register of application. If this value doesn't match an authorized URI, the request will fail with a 401 error.
statestringRequiredShould include the value of the anti-forgery unique session token, as well as any other information needed to recover the context when the user returns to your application, e.g., the starting URL.
login_hintstringIf your application knows which user is trying to authenticate, it can use this parameter to provide a hint to the Authentication Server. The server uses the hint to simplify the login flow either by prefilling the email field in the sign-in form or by selecting the appropriate multi-login session.
groups_hintstringThe sub string is equivalent to the groups in the provider (only support Google ). If you do not provide a groups_hint and the user is currently logged in, in the next request of token, the access_token will not contain claim groups
access_typestringThe allowed values are offline and online. If an access token is being requested, the client does not receive a refresh token unless a value of offline is specified.
code_challengestringSpecifies an encoded code_verifier that will be used as a server-side challenge during authorization code exchange. This string helps mitigating against the threat usually through the use of Proof Key for Code Exchange (PKCE)
code_challenge_methodstringSpecifies what method was used to encode a code_verifier that will be used during authorization code exchange. This parameter must be used with the code_challenge parameter. The value of the code_challenge_method defaults to plain if not present in the request that includes a code_challenge. The only supported values for this parameter are S256 or plain.
resourcestringRFC 8707 — The URI of the resource server where the requested access token will be used. When provided and the client has allowed_resources configured, the issued token's aud claim will be set to this value instead of the default application issuer. The value is bound to the authorization code and carried through to the token response. Must be an absolute URI without a fragment component.
Responses
Authorization code/Implicit grant response
No body.
Bad Request
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Unauthorized
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Response Headers
LocationstringThe redirect uri of the client
OAuth2
Logout endpoint
/oauth /logout Logout the user
Query parameters
client_idstringThe identifier of the client representing the app.
continuestringThe url to be redirected to after logout.
scopestringIf the value is all, it will delete all the user's sessions and refresh_tokens that it has.
Responses
Logout response
No body.
Bad Request
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Unauthorized
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Response Headers
LocationstringThe redirect to post_logout_redirect_uri of the client
OAuth2
Logout endpoint by API
/oauth /logout Authenticated with HTTP basic authentication Authentication
Logout the user
Request body application/json Required
-
tokenstringA valid token (access_token or refresh_token) provided by authn
-
scopestringIf the value is all, it will delete all the user's sessions and refresh_tokens that it has.
Responses
Logout response
No body.
Bad Request
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Unauthorized
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Response Headers
LocationstringThe request has been processed
OAuth2
Token Revocation (RFC 7009)
/oauth /revoke Authenticated with HTTP basic authentication Authentication
Revokes a previously obtained refresh or access token according to RFC 7009.
This endpoint is fully RFC 7009 compliant:
- Returns 200 OK even for invalid tokens (prevents information disclosure)
- Idempotent operation (safe to retry)
- When revoking a refresh token, associated access tokens are automatically blacklisted
Security Note: Per RFC 7009 Section 2.2, this endpoint returns 200 OK for all tokens (valid, invalid, expired, or belonging to other clients) to prevent information disclosure attacks.
Request body application/x-www-form-urlencoded Required
-
tokenstring RequiredThe token that the client wants to revoke (access_token or refresh_token)
-
token_type_hintstringA hint about the type of the token submitted for revocation.
Possible values:
access_token: Indicates the token is an OAuth 2.0 access tokenrefresh_token: Indicates the token is an OAuth 2.0 refresh token
This parameter is optional but helps optimize token lookup performance. If not provided, the server will automatically determine the token type.
Responses
Token successfully revoked or token was already invalid/revoked.
Per RFC 7009, this endpoint always returns 200 OK to prevent information disclosure about token validity or ownership.
No body.
Bad Request (missing required parameters)
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Unauthorized (invalid client credentials)
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
OAuth2
URL of the OP JSON Web Key Set [JWK] document
/.well-known /jwks.json This contains the signing key(s) the RP uses to validate signatures from the OP. The JWK Set MAY also contain the Server's encryption key(s), which are used by RPs to encrypt requests to the Server. When both signing and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate.
Responses
OK
-
keysobject[] RequiredThe JSON object MUST have a "keys" member, which is an array of JWKs.
-
algstringThe "alg" (algorithm) member identifies the algorithm intended for use with the key
-
ktystringThe "kty" (key type) member identifies the cryptographic algorithm family used with the key, such as "RSA" or "EC". "kty" values should either be registered in the IANA JSON Web Key Types registry defined in [JWA] or be a value that contains a Collision-Resistant Name. The "kty" value is a case-sensitive string.
-
usestringThe "use" (public key use) member identifies the intended use of the public key. The "use" parameter is employed to indicate whether a public key is used for encrypting data or verifying the signature on data.
-
x5cstring[]The "x5c" (X.509 Certificate Chain) member contains a chain of one or more PKIX certificates [RFC5280]. The certificate chain is represented as a JSON array of certificate value strings. Each string in the array is a base64 encoded ([RFC4648] Section 4 -- not base64url encoded) DER [ITU.X690.1994] PKIX certificate value
-
nstring -
estring -
kidstringThe "kid" (key ID) member is used to match a specific key. This is used, for instance, to choose among a set of keys within a JWK Set during key rollover
-
x5tstringThe "x5t" (X.509 Certificate SHA-1 Thumbprint) member is a base64url encoded SHA-1 thumbprint (a.k.a. digest) of the DER encoding of an X.509 certificate [RFC5280].
-
OAuth2
URL of list of the OpenID/OAuth endpoints
/.well-known /openid-configuration This URL returns a JSON listing of the OpenID/OAuth endpoints, supported scopes and claims, public keys used to sign the tokens, and other details. The clients can use this information to construct a request to the OpenID server. The field names and values are defined in the OpenID Connect Discovery Specification
Responses
OK
-
token_endpointstring -
token_endpoint_auth_methods_supportedstring[] -
jwks_uristring -
response_modes_supportedstring[] -
subject_types_supportedstring[] -
id_token_signing_alg_values_supportedstring[] -
response_types_supportedstring[] -
scopes_supportedstring[] -
issuerstring -
request_uri_parameter_supportedboolean -
userinfo_endpointstring -
authorization_endpointstring -
http_logout_supportedboolean -
frontchannel_logout_supportedboolean -
end_session_endpointstring -
claims_supportedstring[]
Magic Links
Retrieve access_token via magic link
/magiclink Authenticated with HTTP basic authentication Authentication
This endpoint returns a 200 status code and in its body an access_token and refresh_token.
Responses
OK
-
access_tokenstring RequiredA token used by the client to make authenticated requests on behalf of the resource owner
-
scopestringScopes
-
expires_ininteger -
token_typestring Required -
refresh_tokenstringA token used by the client to obtain a new access token without having to involve the resource owner.
Bad Request
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Unauthorized
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
CIBA
The Backchannel Authentication Endpoint
/bc-authorize The Backchannel Authentication Endpoint is used to initiate an out-of-band authentication of the end-user. This is done by sending an HTTP POST message directly from the Client to the OpenID Provider's Backchannel Authentication Endpoint
Request body application/x-www-form-urlencoded
-
login_hintstring RequiredA hint to the OpenID Provider regarding the end-user for whom authentication is being requested. The value may contain an email address or msisdn, which identifies the end-user to the OP
-
scopestringScope of permissions
-
binding_messagestringA human-readable identifier or message intended to be displayed on both the consumption device and the authentication device to interlock them together for the transaction by way of a visual cue for the end-user. This interlocking message enables the end-user to ensure that the action taken on the authentication device is related to the request initiated by the consumption device.
-
acr_valuesstringRequested Authentication Context Class Reference values. Space-separated string that specifies the acr values that the Authorization Server is being requested to use for processing this Authentication Request. Can include language preference using the format 'locale:xx' where xx is the ISO 639-1 language code (e.g., 'locale:eu', 'locale:es', 'locale:en'). Language preference is only supported by +Credentials provider.
-
client_assertion_typestringThe format of the assertion used for client authentication (private_key_jwt). Must be
urn:ietf:params:oauth:client-assertion-type:jwt-bearerwhen authenticating with a signed JWT instead of a client secret.Use together with
client_assertion. Mutually exclusive withAuthorization: Basicheader. -
client_assertionstringA signed JWT used to authenticate the client (private_key_jwt). The JWT must be signed with the client's private key and contain:
iss: Client IDsub: Client IDaud: Backchannel authentication endpoint URLjti: Unique identifierexp: Expiration time
Use together with
client_assertion_type. Mutually exclusive withAuthorization: Basicheader. -
resourcestringRFC 8707 — The URI of the resource server where the requested access token will be used. When provided and the client has allowed_resources configured, the issued token's aud claim will be set to this value instead of the default application issuer. Must be an absolute URI without a fragment component.
Responses
OK
-
auth_req_idstring RequiredREQUIRED. This is a unique identifier to identify the authentication request made by the Client.
-
expires_ininteger RequiredThe duration in seconds for which the authentication request is valid.
-
intervalinteger RequiredThe minimum amount of time in seconds that the client SHOULD wait between polling to check if the authentication request has been completed.
Bad Request
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Unauthorized
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Response Headers
Cache-ControlstringThe authorization server MUST include the HTTP "Cache-Control" response header field with a value of "no-store" in any response containing tokens, secrets, or other sensitive information.
WebAuthn
Get registration options for WebAuthn
/webauthn /registration /options Request body application/json Required
-
usernamestring -
user_verificationstring -
attestationstring -
attachmentstring -
algorithmsstring[] -
discoverable_credentialstring
Responses
Successful response
-
rpobject-
namestring -
idstring
-
-
userobject-
namestring -
displayNamestring -
idstring
-
-
challengestring -
pubKeyCredParamsobject[]-
typestring -
alginteger
-
-
timeoutinteger -
authenticatorSelectionobject-
requireResidentKeyboolean -
userVerificationstring
-
WebAuthn
Verify WebAuthn Registration
/webauthn /registration /verify Request body application/json Required
-
usernamestring -
responseobject-
idstring -
rawIdstring -
responseobject-
attestationObjectstring Required -
clientDataJSONstring Required -
transportsstring[] Required -
publicKeyAlgorithminteger Required -
publicKeystring Required -
authenticatorDatastring Required
-
-
typestring -
clientExtensionResultsobjectobject -
authenticatorAttachmentstring
-
Responses
Successful verification
-
verifiedboolean
WebAuthn
Get WebAuthn authentication options
/webauthn /authentication /options Request body application/json Required
-
usernamestring -
user_verificationstring
Responses
Successful response
-
challengestring -
timeoutinteger -
rpIdstring -
allowCredentialsobject[]-
typestring -
idstring -
transportsstring[]
-
-
userVerificationstring
WebAuthn
Verify WebAuthn Authentication
/webauthn /authentication /verification Request body application/json Required
-
usernamestring Required -
responseobject Required-
idstring Required -
rawIdstring Required -
responseobject Required-
authenticatorDatastring Required -
clientDataJSONstring Required -
signaturestring Required -
userHandlestring
-
-
typestring Required -
clientExtensionResultsobjectobject -
authenticatorAttachmentstring
-
Responses
Successful verification
-
access_tokenstring Required -
expires_ininteger Required -
refresh_tokenstring Required -
token_typestring Required
Device Code
The Device Code Authentication Endpoint
/device-authorize The Device Code Authentication Endpoint is used to initiate an out-of-band authentication of the end-user. The client initiates the authorization flow by requesting a set of verification codes from the authorization server by making an HTTP "POST" request to the device authorization endpoint.
Request body application/x-www-form-urlencoded
-
client_idstring RequiredThe identifier of the client representing the app.
-
scopestringScope of permissions
-
resourcestringRFC 8707 — The URI of the resource server where the requested access token will be used. When provided and the client has allowed_resources configured, the issued token's aud claim will be set to this value instead of the default application issuer. Must be an absolute URI without a fragment component.
Responses
OK
-
device_codestring RequiredREQUIRED. The unique code used for device verification.
-
user_codestring RequiredREQUIRED. The human-readable user code to be displayed to the user.
-
verification_uristring RequiredREQUIRED. The end-user verification URI on the authorization server. The URI should be short and easy to remember as end users will be asked to manually type it into their user agent.
-
verification_uri_completestringA verification URI that includes the "user_code" (or other information with the same function as the "user_code"), which is designed for non-textual transmission.
-
qr_codestring RequiredREQUIRED. The base64 encoded QR code image data.
-
expires_ininteger RequiredREQUIRED. The lifetime in seconds of the "device_code" and "user_code"
-
intervalintegerThe minimum amount of time in seconds that the client SHOULD wait between polling requests to the token endpoint. If no value is provided, clients MUST use 5 as the default.
Bad Request
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Unauthorized
-
errorstring RequiredA single error code
Show 10 values Hide 10 values
invalid_requestaccess_deniedinvalid_clientinvalid_grantunauthorized_clientunauthorized_grant_typeinvalid_scopeinvalid_targeterror_descriptionerror_uri
-
error_descriptionstringA human-readable text providing additional information, used to assist in the understanding and resolution of the error occurred
-
error_uristring
Response Headers
Cache-ControlstringThe authorization server MUST include the HTTP "Cache-Control" response header field with a value of "no-store" in any response containing tokens, secrets, or other sensitive information.