pub struct OpenIDTokenResponse {
pub access_token: String,
pub token_type: String,
pub refresh_token: Option<String>,
pub expires_in: Option<u64>,
pub id_token: Option<String>,
}
Expand description
OpenID token response
The content of this field is specified in
- OAuth specifications: https://datatracker.ietf.org/doc/html/rfc6749#section-5.1
- OpenID Core specifications: https://openid.net/specs/openid-connect-core-1_0.html#TokenResponse
Fields§
§access_token: String
REQUIRED. The access token issued by the authorization server.
token_type: String
REQUIRED. The type of the token issued. It MUST be “Bearer”
refresh_token: Option<String>
OPTIONAL. The refresh token, which can be used to obtain new access tokens using the same authorization grant
expires_in: Option<u64>
RECOMMENDED. The lifetime in seconds of the access token. For example, the value “3600” denotes that the access token will expire in one hour from the time the response was generated. If omitted, the authorization server SHOULD provide the expiration time via other means or document the default value.
id_token: Option<String>
REQUIRED. ID Token value associated with the authenticated session.
Note: this field is marked as optionnal because it is excluded in case of request of refresh token.
Trait Implementations§
Source§impl Clone for OpenIDTokenResponse
impl Clone for OpenIDTokenResponse
Source§fn clone(&self) -> OpenIDTokenResponse
fn clone(&self) -> OpenIDTokenResponse
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more