UserActor class

Represents the act (actor) claim from an ID token issued during a Custom Token Exchange delegation or impersonation flow.

The act claim identifies the acting party — the entity performing actions on behalf of the subject (for example, an AI agent or a support representative). It is set server-side via an Auth0 Action using the api.authentication.setActor() command.

The claim may be nested to represent delegation chains (act.act for multi-hop delegation); the full structure is preserved.

See also:

Constructors

UserActor({required String sub, UserActor? actor, Map<String, dynamic> extraClaims = const {}})
const

Properties

actor → UserActor?
A nested actor claim representing the next actor in a delegation chain.
final
extraClaims → Map<String, dynamic>
Any additional claims beyond sub and act (for example org, role).
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sub → String
The subject identifier of the acting party.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromMap(Map? map) → UserActor?
Creates a UserActor from a decoded act claim map, or returns null if the map does not contain a sub claim.