pub struct DesktopOAuthPresenter;Expand description
Desktop sign-in using the system browser and a loopback callback listener.
Register http://localhost:19284/callback with each provider’s client.
Trait Implementations§
Source§impl OAuthPresenter for DesktopOAuthPresenter
impl OAuthPresenter for DesktopOAuthPresenter
Source§fn redirect_uri(&self, _provider: CloudProvider) -> &str
fn redirect_uri(&self, _provider: CloudProvider) -> &str
The registered redirect for this provider. No query or fragment is allowed.
Source§fn present<'life0, 'life1, 'async_trait>(
&'life0 self,
authorization_url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SecretText, OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn present<'life0, 'life1, 'async_trait>(
&'life0 self,
authorization_url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SecretText, OAuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Open the authorization URL and return the complete provider redirect.
Auto Trait Implementations§
impl Freeze for DesktopOAuthPresenter
impl RefUnwindSafe for DesktopOAuthPresenter
impl Send for DesktopOAuthPresenter
impl Sync for DesktopOAuthPresenter
impl Unpin for DesktopOAuthPresenter
impl UnsafeUnpin for DesktopOAuthPresenter
impl UnwindSafe for DesktopOAuthPresenter
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreCreates a shared type from an unshared type.