OAuthDiscoveryResult class
Result of resolving a 401 challenge into concrete OAuth endpoints
(RFC 9728 PRM + RFC 8414/OIDC authorization-server discovery).
Constructors
-
OAuthDiscoveryResult({required WwwAuthenticateChallenge? challenge, required ProtectedResourceMetadata protectedResource, required AuthServerMetadata authServerMetadata, required List<
String> stepUpScopes}) -
const
Properties
- authServerMetadata → AuthServerMetadata
-
The discovered authorization-server metadata (RFC 8414 / OIDC).
final
- challenge → WwwAuthenticateChallenge?
-
The parsed
WWW-Authenticatechallenge, when one was present.final - hashCode → int
-
The hash code for this object.
no setterinherited
- protectedResource → ProtectedResourceMetadata
-
The fetched Protected Resource Metadata (RFC 9728).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stepUpScopes
→ List<
String> -
The scope to request when (re-)authorizing (SEP-835 step-up): the
challenge
scope=when advertised, else the PRMscopes_supported.final
Methods
-
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