IntrospectedOAuth2Token class abstract
Introspection contains an access token's session data as specified by IETF RFC 7662
Properties:
- active - Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's "active" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a "true" value return for the "active" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time).
- aud - Audience contains a list of the token's intended audiences.
- clientId - ID is aclient identifier for the OAuth 2.0 client that requested this token.
- exp - Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire.
- ext - Extra is arbitrary data set by the session.
- iat - Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued.
- iss - IssuerURL is a string representing the issuer of this token
- nbf - NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before.
- obfuscatedSubject - ObfuscatedSubject is set when the subject identifier algorithm was set to "pairwise" during authorization. It is the
sub
value of the ID Token that was issued. - scope - Scope is a JSON string containing a space-separated list of scopes associated with this token.
- sub - Subject of the token, as defined in JWT
RFC7519
. Usually a machine-readable identifier of the resource owner who authorized this token. - tokenType - TokenType is the introspected token's type, typically
Bearer
. - tokenUse - TokenUse is the introspected token's use, for example
access_token
orrefresh_token
. - username - Username is a human-readable identifier for the resource owner who authorized this token.
- Annotations
-
- @BuiltValue()
Constructors
- IntrospectedOAuth2Token([void updates(dynamic b)])
-
factory
Properties
- active → bool
-
Active is a boolean indicator of whether or not the presented token is currently active. The specifics of a token's "active" state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a "true" value return for the "active" property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time).
no setter
-
aud
→ BuiltList<
String> ? -
Audience contains a list of the token's intended audiences.
no setter
- clientId → String?
-
ID is aclient identifier for the OAuth 2.0 client that requested this token.
no setter
- exp → int?
-
Expires at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire.
no setter
-
ext
→ BuiltMap<
String, JsonObject?> ? -
Extra is arbitrary data set by the session.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- iat → int?
-
Issued at is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued.
no setter
- iss → String?
-
IssuerURL is a string representing the issuer of this token
no setter
- nbf → int?
-
NotBefore is an integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before.
no setter
- obfuscatedSubject → String?
-
ObfuscatedSubject is set when the subject identifier algorithm was set to "pairwise" during authorization. It is the
sub
value of the ID Token that was issued.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → String?
-
Scope is a JSON string containing a space-separated list of scopes associated with this token.
no setter
- sub → String?
-
Subject of the token, as defined in JWT
RFC7519
. Usually a machine-readable identifier of the resource owner who authorized this token.no setter - tokenType → String?
-
TokenType is the introspected token's type, typically
Bearer
.no setter - tokenUse → String?
-
TokenUse is the introspected token's use, for example
access_token
orrefresh_token
.no setter - username → String?
-
Username is a human-readable identifier for the resource owner who authorized this token.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(dynamic)) → IntrospectedOAuth2Token -
Rebuilds the instance.
inherited
-
toBuilder(
) → dynamic -
Converts the instance to a builder
B
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
serializer
→ Serializer<
IntrospectedOAuth2Token> -
no setter