pub struct BrowserOAuthHandler { /* private fields */ }Expand description
Default OAuthHandler that opens the system browser and listens
for the OAuth callback on a dynamically-assigned local port.
Implementations§
Trait Implementations§
Source§impl OAuthHandler for BrowserOAuthHandler
impl OAuthHandler for BrowserOAuthHandler
Source§fn redirect_uri(&self) -> &str
fn redirect_uri(&self) -> &str
The redirect URI the OAuth provider should send the user back to,
e.g.
http://127.0.0.1:<port>/oauth2callback.Called when user needs to authorize. App should open browser to
auth_url
and return the authorization code and state (CSRF token) from the callback.Auto Trait Implementations§
impl !Freeze for BrowserOAuthHandler
impl RefUnwindSafe for BrowserOAuthHandler
impl Send for BrowserOAuthHandler
impl Sync for BrowserOAuthHandler
impl Unpin for BrowserOAuthHandler
impl UnsafeUnpin for BrowserOAuthHandler
impl UnwindSafe for BrowserOAuthHandler
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> 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 moreCreates a shared type from an unshared type.