pub struct OAuth2Client { /* private fields */ }Expand description
An OAuth2 based client implementation
Trait Implementations§
Source§impl Client for OAuth2Client
impl Client for OAuth2Client
type TokenResponse = StandardTokenResponse<EmptyExtraTokenFields, BasicTokenType>
type Configuration = Config
type LoginState = LoginState
type SessionState = ()
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,
__arg2: 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 OAuth2Client
impl Clone for OAuth2Client
Source§fn clone(&self) -> OAuth2Client
fn clone(&self) -> OAuth2Client
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 OAuth2Client
impl !RefUnwindSafe for OAuth2Client
impl Send for OAuth2Client
impl Sync for OAuth2Client
impl Unpin for OAuth2Client
impl !UnwindSafe for OAuth2Client
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.