OAuthIntrospectionOptions class
Options for RFC 7662 token introspection.
Constructors
-
OAuthIntrospectionOptions({required Uri endpoint, String? clientId, String? clientSecret, String? tokenTypeHint, Duration cacheTtl = Duration.zero, int maxCacheEntries = 1024, Duration clockSkew = const Duration(seconds: 60), Duration requestTimeout = const Duration(seconds: 10), String? requiredAudience, Map<
String, String> additionalParameters = const <String, String>{}}) -
Creates introspection options for
endpoint.const
Properties
-
additionalParameters
→ Map<
String, String> -
Additional form parameters sent to the endpoint.
final
- cacheTtl → Duration
-
Duration for which successful results remain cached.
final
- clientId → String?
-
Client identifier used for endpoint authentication, when supplied.
final
- clientSecret → String?
-
Client secret used for endpoint authentication, when supplied.
final
- clockSkew → Duration
-
Clock tolerance applied to
expandnbfclaims.final - endpoint → Uri
-
Introspection endpoint that receives token checks.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxCacheEntries → int
-
Maximum number of distinct token digests retained by the local cache.
final
- requestTimeout → Duration
-
Maximum time allowed for an introspection request.
final
- requiredAudience → String?
-
Audience that every active token must contain, when configured.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokenTypeHint → String?
-
Optional
token_type_hintsent with each request.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