pub struct ElicitingOAuthHandler { /* private fields */ }Expand description
OAuthHandler that dispatches the OAuth authorization URL to the host
Implementations§
Source§impl ElicitingOAuthHandler
impl ElicitingOAuthHandler
pub fn new(ctx: OAuthHandlerContext) -> Result<Self, Error>
Trait Implementations§
Source§impl OAuthHandler for ElicitingOAuthHandler
impl OAuthHandler for ElicitingOAuthHandler
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 ElicitingOAuthHandler
impl RefUnwindSafe for ElicitingOAuthHandler
impl Send for ElicitingOAuthHandler
impl Sync for ElicitingOAuthHandler
impl Unpin for ElicitingOAuthHandler
impl UnsafeUnpin for ElicitingOAuthHandler
impl UnwindSafe for ElicitingOAuthHandler
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