Skip to main content
Latest
namespace DeviceCompleteRequest
Re-export
import { DeviceCompleteRequest } from "https://deno.land/x/authlete_deno@v1.2.10/mod.ts";

Enums

Failure reasons of authorization requests.

class DeviceCompleteRequest
Re-export
import { DeviceCompleteRequest } from "https://deno.land/x/authlete_deno@v1.2.10/mod.ts";

Request to Authlete /device/complete API.

Properties

optional
acr: string

The reference of the authentication context class which the end-user authentication satisfied.

authTime: number

The time at which the end-user was authenticated.

optional
claims: string

Additional claims which will be embedded in the ID token.

optional
errorDescription: string

The description of the error. This corresponds to the error_description property in the response to the client.

optional
errorUri: string

The URI of a document which describes the error in detail. This corresponds to the error_uri property in the response to the client.

optional
idtHeaderParams: string

JSON that represents additional JWS header parameters for the ID token that may be issued from the token endpoint.

optional
properties: Property[]

The extra properties associated with the access token that will be issued.

The result of end-user authentication and authorization.

optional
scopes: string[]

Scopes associated with the access token. If this property has a non-null value, the set of scopes will be used instead of the scopes specified in the original device authorization request.

optional
sub: string

The value of the sub claim that should be used in the ID token. If this property is null or empty, the value of subject is used as the value of the sub claim. The main purpose of this sub property is to hide the actual value of the subject from client applications.

Note that the value of the subject request parameter is used as the value of the subject associated with the access token regardless of whether this sub property is a non-empty value or not. In other words, this sub property affects only the sub claim in the ID token.

optional
subject: string

The subject (= unique identifier) of the end-user who has granted authorization to the client application.

This subject property is used as the value of the subject associated with the access token and as the value of the sub claim in the ID token.

Note that, if sub has a non-empty value, it is used as the value of the sub claim in the ID token. However, even in the case, the value of the subject associated with the access token is still the value of this subject property.

optional
userCode: string

The user code input by the end-user.