pub struct OAuthAuthorizer<E, S> { /* private fields */ }Expand description
Runs the authorization flow and remembers its result.
Implementations§
Source§impl<E: OAuthEnvironment, S: AuthorizationSecrets + Send + Sync + 'static> OAuthAuthorizer<E, S>
impl<E: OAuthEnvironment, S: AuthorizationSecrets + Send + Sync + 'static> OAuthAuthorizer<E, S>
Sourcepub fn new(config: OAuthConfig, environment: E, secrets: S) -> Arc<Self> ⓘ
pub fn new(config: OAuthConfig, environment: E, secrets: S) -> Arc<Self> ⓘ
An authorizer for config, using environment and drawing its
unguessable values from secrets.
Obtains a token for challenge, replacing any held.
§Errors
AuthorizeError naming the stage that failed.
Trait Implementations§
Source§impl<E: OAuthEnvironment, S: AuthorizationSecrets + Send + Sync + 'static> BearerAuth for OAuthAuthorizer<E, S>
impl<E: OAuthEnvironment, S: AuthorizationSecrets + Send + Sync + 'static> BearerAuth for OAuthAuthorizer<E, S>
Auto Trait Implementations§
impl<E, S> !Freeze for OAuthAuthorizer<E, S>
impl<E, S> RefUnwindSafe for OAuthAuthorizer<E, S>where
E: RefUnwindSafe,
S: RefUnwindSafe,
impl<E, S> Send for OAuthAuthorizer<E, S>
impl<E, S> Sync for OAuthAuthorizer<E, S>
impl<E, S> Unpin for OAuthAuthorizer<E, S>
impl<E, S> UnsafeUnpin for OAuthAuthorizer<E, S>where
E: UnsafeUnpin,
S: UnsafeUnpin,
impl<E, S> UnwindSafe for OAuthAuthorizer<E, S>where
E: UnwindSafe,
S: UnwindSafe,
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