AuthOAuthChallenge class

The short-lived values required to finish one OAuth authorization attempt.

The state value is the one-time challenge sent to the provider and returned by its callback. Persistent implementations must protect codeVerifier, nonce, and callbackUrl appropriately and make AuthOAuthChallengeStore.consume an atomic delete-and-return operation.

Constructors

AuthOAuthChallenge({required String providerId, required String state, required DateTime expiresAt, String? codeVerifier, String? nonce, String? callbackUrl})
Creates the short-lived values associated with one OAuth attempt.
const

Properties

callbackUrl → String?
Optional callback URL to use after the authorization attempt completes.
final
codeVerifier → String?
Optional proof used by the provider's code exchange.
final
expiresAt → DateTime
UTC time after which this challenge cannot be consumed.
final
hashCode → int
The hash code for this object.
no setterinherited
nonce → String?
Optional nonce used to bind the provider response to this attempt.
final
providerId → String
OAuth provider identifier used to partition callback challenges.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → String
Raw one-time state returned by the provider callback.
final

Methods

isActive({DateTime? now}) → bool
Whether this challenge is active at now.
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