pub struct OpenIdClient {
pub require_issuer_match: bool,
/* private fields */
}
Available on crate feature
openid
only.Expand description
An OpenID Connect based client implementation
Fields§
§require_issuer_match: bool
Specifies whether the issuer claim must match the expected issuer URL for the provider.
Trait Implementations§
Source§impl Client for OpenIdClient
impl Client for OpenIdClient
type TokenResponse = StandardTokenResponse<IdTokenFields<EmptyAdditionalClaims, EmptyExtraTokenFields, CoreGenderClaim, CoreJweContentEncryptionAlgorithm, CoreJwsSigningAlgorithm>, BasicTokenType>
type Configuration = Config
type LoginState = OpenIdLoginState
type SessionState = (String, Rc<IdTokenClaims<EmptyAdditionalClaims, CoreGenderClaim>>)
fn from_config<'async_trait>(
config: Self::Configuration,
) -> Pin<Box<dyn Future<Output = Result<Self, OAuth2Error>> + 'async_trait>>where
Self: 'async_trait,
fn set_redirect_uri(self, url: Url) -> Self
fn make_login_context( &self, config: &InnerConfig, redirect_url: Url, ) -> Result<LoginContext<Self::LoginState>, OAuth2Error>
fn exchange_code<'life0, 'async_trait>(
&'life0 self,
code: String,
state: Self::LoginState,
) -> Pin<Box<dyn Future<Output = Result<(OAuth2Context, Self::SessionState), OAuth2Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn exchange_refresh_token<'life0, 'async_trait>(
&'life0 self,
refresh_token: String,
session_state: Self::SessionState,
) -> Pin<Box<dyn Future<Output = Result<(OAuth2Context, Self::SessionState), OAuth2Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn logout(&self, session_state: Self::SessionState, options: LogoutOptions)
fn logout(&self, session_state: Self::SessionState, options: LogoutOptions)
Trigger the logout of the session Read more
Source§impl Clone for OpenIdClient
impl Clone for OpenIdClient
Source§fn clone(&self) -> OpenIdClient
fn clone(&self) -> OpenIdClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for OpenIdClient
impl !RefUnwindSafe for OpenIdClient
impl Send for OpenIdClient
impl Sync for OpenIdClient
impl Unpin for OpenIdClient
impl !UnwindSafe for OpenIdClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.