pub trait TokenResponse<AC, GC, JE, JS, JT, TT>: OAuth2TokenResponse<TT>{
    // Required method
    fn id_token(&self) -> Option<&IdToken<AC, GC, JE, JS, JT>>;
}
Expand description

Extends the base OAuth2 token response with an ID token.

Required Methods§

source

fn id_token(&self) -> Option<&IdToken<AC, GC, JE, JS, JT>>

Returns the ID token provided by the token response.

OpenID Connect authorization servers should always return this field, but it is optional to allow for interoperability with authorization servers that only support OAuth2.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<AC, EF, GC, JE, JS, JT, TT> TokenResponse<AC, GC, JE, JS, JT, TT> for StandardTokenResponse<IdTokenFields<AC, EF, GC, JE, JS, JT>, TT>