OpenIdTestAccessTokenBuilder

Builder for access tokens issued by OpenIdTestKeys.

Access tokens do not require a subject by default, which allows service-style tokens that identify a client instead of an end user.

Report a problem

Properties

Link copied to clipboard
Link copied to clipboard

OAuth client ID claim.

Link copied to clipboard

Email claim.

Link copied to clipboard

Expiration timestamp. Defaults to one hour after builder creation time.

Link copied to clipboard

Issued-at timestamp. Defaults to builder creation time.

Link copied to clipboard
Link copied to clipboard

JWT ID.

Link copied to clipboard
Link copied to clipboard
var name: String?

Display name claim.

Link copied to clipboard

Not-before timestamp.

Link copied to clipboard

Functions

Link copied to clipboard
fun claim(name: String, value: Any?)

Adds a custom JSON-like claim.