TokenIssuer class abstract

A base class for issuing authentication tokens.

Implementations provide the token creation through createToken, while the non-virtual issueToken applies the sign-in policy and the delivery of the issued secrets, uniformly for every token type.

Constructors

TokenIssuer()
Creates a new TokenIssuer.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createToken(Session session, {required UuidValue authUserId, required String method, Set<Scope>? scopes, Transaction? transaction}) Future<AuthSuccess>
Creates a new authentication token for the specified user with the given authentication method and optional scopes.
issueToken(Session session, {required UuidValue authUserId, required String method, Set<Scope>? scopes, Transaction? transaction}) Future<AuthSuccess>
Issues an authentication token for authUserId and delivers it according to the request.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshCookiePath(Session session) String?
The cookie Path for a cookie-delivered refresh token, or null for the configured auth cookie path.
refreshTokenExpiresAt() DateTime?
The expiry of a cookie-delivered refresh token, or null for a browser session cookie.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited