AuthEndpointAuthenticationIntent class final
A successful plugin authentication that must be completed by the host.
Portable plugins verify credentials and describe the identity transition, but they never issue or serialize a session. Framework integrations must apply their central authentication policy, issue the configured session strategy, run callbacks and lifecycle events, and only then call projectResponse with the host-owned public session payload.
Constructors
-
AuthEndpointAuthenticationIntent({required AuthUser user, required String authenticationMethod, AuthProvider? provider, Duration? maximumAge, String? impersonatedBy, Map<
String, dynamic> metadata = const <String, dynamic>{}, AuthEndpointAuthenticationProjector? projectResponse}) - Creates a host-owned authentication transition intent.
Properties
- authenticationMethod → String
-
Stable label for the authentication method used.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- impersonatedBy → String?
-
Administrator responsible for an impersonated session, when applicable.
final
- maximumAge → Duration?
-
Maximum age requested for the resulting authentication.
final
-
metadata
→ Map<
String, dynamic> -
Non-reserved metadata merged into the host session response.
final
- provider → AuthProvider?
-
Provider that verified the user, when applicable.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- user → AuthUser
-
User verified by the plugin.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
projectResponse(
Map< String, dynamic> sessionPayload) → FutureOr<Object?> -
Projects the host-owned
sessionPayloadinto a public response. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited