Skip to main content
Module

x/authlete_deno/mod.ts>TokenInfo

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

Information about a token of the type urn:ietf:params:oauth:token-type:access_token or the type urn:ietf:params:oauth:token-type:refresh_token.

This class is used to hold detailed information about a subject token or an actor token. See the descriptions of TokenResponse.subjectTokenInfo and TokenResponse.actorTokenInfo for details.

For more details, see RFC 8693 OAuth 2.0 Token Exchange

Properties

optional
authorizationDetails: AuthzDetails

The authorization details associated with the token. The values are ones specified by the authorization_details request parameters.

For more details, see OAuth 2.0 Rich Authorization Requests.

clientId: number

The client ID.

optional
clientIdAlias: string

The client ID alias.

clientIdAliasUsed: boolean

The flag which indicates whether the client ID alias was used when the token was created.

expiredAt: number

The expiration date/time in seconds since the Unix epoch.

optional
properties: Property[]

The extra properties associated with the token.

optional
resources: string[]

The resources associated with the token. The values are ones specified by the resource request parameters.

For more details, see RFC 8707 Resource Indicators for OAuth 2.0.

optional
scopes: Scope[]

The scopes.

optional
subject: string

The subject (= resource owner's unique identifier).