SecretChallengeCompletionConfig<T> class
Configuration for completion token validation with all protection mechanisms.
This class provides callbacks for workflow-specific logic while keeping the core completion token validation logic generic and reusable.
Type parameter T represents the request type (e.g.,
EmailAccountRequest, EmailAccountPasswordResetRequest).
- Available extensions
Constructors
-
SecretChallengeCompletionConfig({required GetRequestCallback<
T> getRequest, required SecretChallenge? getCompletionChallenge(T request), required bool isExpired(T request), required OnExpiredCallback<T> onExpired, RateLimiter? rateLimiter}) - Creates a new SecretChallengeCompletionConfig.
Properties
- getCompletionChallenge → SecretChallenge? Function(T request)
-
Extracts the completion challenge from the request.
final
-
getRequest
→ GetRequestCallback<
T> -
Retrieves the request by ID.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExpired → bool Function(T request)
-
Checks if the request has expired.
final
-
onExpired
→ OnExpiredCallback<
T> -
Called when the request has expired.
final
- rateLimiter → RateLimiter?
-
Optional rate limiting for completion attempts.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
tryRecordAttempt(
Session session, {required UuidValue requestId, Map< String, String> ? extraData}) → Future<bool> -
Available on SecretChallengeCompletionConfig<
Attempts to admit and record a request.T> , provided by the SecretChallengeCompletionConfigExtension extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited