AnonymousIdpConfig class

Configuration for the anonymous identity provider.

Inheritance

Constructors

AnonymousIdpConfig({BeforeAnonymousAccountCreatedFunction? onBeforeAnonymousAccountCreated, AfterAnonymousAccountCreatedFunction? onAfterAnonymousAccountCreated, RateLimit? perIpAddressRateLimit = const RateLimit(maxAttempts: 100, timeframe: Duration(hours: 1))})
Creates a new AnonymousIdpConfig.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
onAfterAnonymousAccountCreated AfterAnonymousAccountCreatedFunction?
Function to be called after a new anonymous account has been created.
final
onBeforeAnonymousAccountCreated BeforeAnonymousAccountCreatedFunction?
Function to be called before a new anonymous account is created. This function should throw an exception if a new anonymous account is not allowed to be created for any reason, or return void otherwise. This mechanism is how an application would prevent abuse of the anonymous account creation process.
final
perIpAddressRateLimit RateLimit?
The maximum rate of anonymous accounts that can be created from a single IP address.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Type
The type of the provider that this builder creates. Used to store the provider in the AuthConfig.
no setterinherited

Methods

build({required TokenManager tokenManager, required AuthUsers authUsers, required UserProfiles userProfiles}) AnonymousIdp
Builds a new instance of the identity provider.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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