OAuthServerMetadata class final

OAuth 2.0 Authorization Server Metadata (RFC 8414).

Represents the subset of the document served at /.well-known/oauth-authorization-server that this client needs to resolve the PAR, authorization, and token endpoints instead of relying on hardcoded paths.

All fields are nullable because servers are only required to publish the members relevant to the features they support; callers should fall back to sensible defaults when a member is absent.

Constructors

OAuthServerMetadata({String? issuer, String? pushedAuthorizationRequestEndpoint, String? authorizationEndpoint, String? tokenEndpoint, List<String>? scopesSupported})
const
OAuthServerMetadata.fromJson(Map<String, dynamic> json)
Deserializes RFC 8414 server metadata.
factory

Properties

authorizationEndpoint String?
The URL of the authorization endpoint.
final
hashCode int
The hash code for this object.
no setterinherited
issuer String?
The authorization server's issuer identifier.
final
pushedAuthorizationRequestEndpoint String?
The URL of the pushed authorization request endpoint (RFC 9126).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopesSupported List<String>?
The OAuth scopes supported by this server, if published.
final
tokenEndpoint String?
The URL of the token endpoint.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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