AuthRuntime<TContext> class

Composed authentication runtime for one application.

AuthRuntime is the kernel boundary between typed auth capabilities and a framework integration. Persistence is taken from AuthOptions.store unless an explicit store is supplied.

Constructors

AuthRuntime({required AuthOptions<TContext> options, AuthStore? store, Iterable<AuthServerPlugin<TContext>> plugins = const []})
Composes one store, the configured plugins, and provider inventory.

Properties

authenticationMethods AuthAuthenticationMethodService
Atomic inventory and mutation boundary shared by all auth methods.
latefinal
hashCode int
The hash code for this object.
no setterinherited
options AuthOptions<TContext>
Options used to construct this runtime.
final
plugins List<AuthServerPlugin<TContext>>
The plugins configured for this runtime.
final
providers List<AuthProvider>
Providers contributed by core options and provider plugins.
latefinal
registry AuthServerPluginRegistry<TContext>
Registry of plugins active in this runtime.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
store AuthStore
Typed domain stores used by auth plugins.
final

Methods

hasPlugin(String id) bool
Whether a plugin with id is registered in this runtime.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
plugin(String id) AuthServerPlugin<TContext>?
Returns the registered plugin with id, or null when it is absent.
requireDurableStoreOrThrow() → void
Throws when this runtime is backed by intentionally ephemeral storage.
toString() String
A string representation of this object.
inherited

Operators

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