OAuthProviderModeOptions class

Options for the OAuth provider mode.

Constructors

OAuthProviderModeOptions({AuthRoutePath authorizationEndpoint = const AuthRoutePath('/oauth/authorize'), AuthRoutePath tokenEndpoint = const AuthRoutePath('/oauth/token'), AuthRoutePath userInfoEndpoint = const AuthRoutePath('/oauth/userinfo'), AuthRoutePath introspectionEndpoint = const AuthRoutePath('/oauth/introspect'), OAuthOidcConfiguration? oidc, Duration codeLifetime = const Duration(minutes: 10), Duration accessTokenLifetime = const Duration(hours: 1), Duration refreshTokenLifetime = const Duration(days: 30), List<String> supportedGrantTypes = const ['authorization_code', 'client_credentials', 'refresh_token'], List<String> supportedResponseTypes = const ['code'], List<String> supportedScopes = const ['openid', 'profile', 'email'], Map<String, List<String>> userInfoClaimsByScope = const {}, bool requirePkce = true, bool allowRefreshTokenRotation = true, int? maxRefreshTokenUses})
Creates provider-mode endpoint, lifetime, and protocol options.
const

Properties

accessTokenLifetime → Duration
Lifetime of access tokens.
final
allowRefreshTokenRotation → bool
Whether refresh token rotation is allowed.
final
authorizationEndpoint → AuthRoutePath
Authorization endpoint path.
final
codeLifetime → Duration
Lifetime of authorization codes.
final
hashCode → int
The hash code for this object.
no setterinherited
introspectionEndpoint → AuthRoutePath
Token introspection endpoint path.
final
maxRefreshTokenUses → int?
Maximum number of refresh token uses (null = unlimited).
final
oidc → OAuthOidcConfiguration?
Explicit OpenID Connect signing and discovery configuration.
final
refreshTokenLifetime → Duration
Lifetime of refresh tokens.
final
requirePkce → bool
Whether PKCE is required.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
supportedGrantTypes → List<String>
Supported grant types.
final
supportedResponseTypes → List<String>
Supported response types.
final
supportedScopes → List<String>
Supported scopes.
final
tokenEndpoint → AuthRoutePath
Token endpoint path.
final
userInfoClaimsByScope → Map<String, List<String>>
Explicit user-attribute claims exposed by each granted scope.
final
userInfoEndpoint → AuthRoutePath
UserInfo endpoint path.
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