OAuthOidcConfiguration class

OpenID Connect issuer and asymmetric signing configuration.

signingKey must contain private asymmetric key material and a non-empty key ID. The plugin derives a public-only JWK for the JWKS endpoint and never exposes private key parameters.

Constructors

OAuthOidcConfiguration({required Uri issuer, required JsonWebKey signingKey, String signingAlgorithm = 'RS256', AuthRoutePath discoveryEndpoint = const AuthRoutePath('/.well-known/openid-configuration'), AuthRoutePath jwksEndpoint = const AuthRoutePath('/oauth/jwks'), Duration idTokenLifetime = const Duration(hours: 1)})
Creates validated OpenID Connect issuer and signing configuration.

Properties

discoveryEndpoint AuthRoutePath
Standard OpenID Provider configuration endpoint path.
final
hashCode int
The hash code for this object.
no setterinherited
idTokenLifetime Duration
Lifetime of an issued ID token.
final
issuer Uri
Public issuer identifier embedded in ID tokens and discovery metadata.
final
jwksEndpoint AuthRoutePath
Public JSON Web Key Set endpoint path.
final
publicJwk Map<String, dynamic>
Public-only representation of signingKey for the JWKS endpoint.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signingAlgorithm String
JWS algorithm used to sign ID tokens.
final
signingKey JsonWebKey
Private asymmetric JWK used to sign ID tokens.
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