An interface for managing authentication tokens.
This interface extends TokenIssuer to provide comprehensive token management capabilities including issuing, validating, listing, and revoking tokens.
- Implemented types
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
-
issueToken(
Session session, {required UuidValue authUserId, required String method, Set< Scope> ? scopes, Transaction? transaction}) → Future<AuthSuccess> -
Issues an authentication token.
inherited
-
listTokens(
Session session, {required UuidValue? authUserId, String? method, String? tokenIssuer, Transaction? transaction}) → Future< List< TokenInfo> > - Lists all TokenInfos matching the given criteria.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
revokeAllTokens(
Session session, {required UuidValue? authUserId, Transaction? transaction, String? method, String? tokenIssuer}) → Future< void> - Revokes all tokens matching the given criteria.
-
revokeToken(
Session session, {required String tokenId, Transaction? transaction, String? tokenIssuer}) → Future< void> - Revokes a specific token by its ID.
-
toString(
) → String -
A string representation of this object.
inherited
-
validateToken(
Session session, String token) → Future< AuthenticationInfo?> - Validates an authentication token and returns the associated authentication information.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited