Struct oauth2::StandardTokenIntrospectionResponse[][src]

pub struct StandardTokenIntrospectionResponse<EF, TT> where
    EF: ExtraTokenFields,
    TT: TokenType + 'static, 
{ /* fields omitted */ }
Expand description

Standard OAuth2 token introspection response.

This struct includes the fields defined in Section 2.2 of RFC 7662, as well as extensions defined by the EF type parameter.

Implementations

Instantiate a new OAuth2 token introspection response.

Sets the set_active field.

Sets the set_scopes field.

Sets the set_client_id field.

Sets the set_username field.

Sets the set_token_type field.

Sets the set_exp field.

Sets the set_iat field.

Sets the set_nbf field.

Sets the set_sub field.

Sets the set_aud field.

Sets the set_iss field.

Sets the set_jti field.

Extra fields defined by the client application.

Sets the set_extra_fields field.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

REQUIRED. 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). Read more

OPTIONAL. A JSON string containing a space-separated list of scopes associated with this token, in the format described in Section 3.3 of OAuth 2.0. If included in the response, this space-delimited field is parsed into a Vec of individual scopes. If omitted from the response, this field is None. Read more

OPTIONAL. Client identifier for the OAuth 2.0 client that requested this token. Read more

OPTIONAL. Human-readable identifier for the resource owner who authorized this token. Read more

OPTIONAL. Type of the token as defined in Section 5.1 of OAuth 2.0 [RFC6749]. Value is case insensitive and deserialized to the generic TokenType parameter. Read more

OPTIONAL. Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire, as defined in JWT RFC7519. Read more

OPTIONAL. Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued, as defined in JWT RFC7519. Read more

OPTIONAL. Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before, as defined in JWT RFC7519. Read more

OPTIONAL. Subject of the token, as defined in JWT RFC7519. Usually a machine-readable identifier of the resource owner who authorized this token. Read more

OPTIONAL. Service-specific string identifier or list of string identifiers representing the intended audience for this token, as defined in JWT RFC7519. Read more

OPTIONAL. String representing the issuer of this token, as defined in JWT RFC7519. Read more

OPTIONAL. String identifier for the token, as defined in JWT RFC7519. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.