[−][src]Struct yup_oauth2::InstalledFlow
Methods
impl<C> InstalledFlow<C> where
C: BorrowMut<Client>,
[src]
C: BorrowMut<Client>,
pub fn new(
client: C,
method: Option<InstalledFlowReturnMethod>
) -> InstalledFlow<C>
[src]
client: C,
method: Option<InstalledFlowReturnMethod>
) -> InstalledFlow<C>
Starts a new Installed App auth flow. If HTTPRedirect is chosen as method and the server can't be started, the flow falls back to Interactive.
pub fn obtain_token<'a, AD: AuthenticatorDelegate, S, T>(
&mut self,
auth_delegate: &mut AD,
appsecret: &ApplicationSecret,
scopes: S
) -> Result<Token, Box<dyn Error>> where
T: AsRef<str> + 'a,
S: Iterator<Item = &'a T>,
[src]
&mut self,
auth_delegate: &mut AD,
appsecret: &ApplicationSecret,
scopes: S
) -> Result<Token, Box<dyn Error>> where
T: AsRef<str> + 'a,
S: Iterator<Item = &'a T>,
Handles the token request flow; it consists of the following steps: . Obtain a auhorization code with user cooperation or internal redirect. . Obtain a token and refresh token using that code. . Return that token
It's recommended not to use the DefaultAuthenticatorDelegate, but a specialized one.
Auto Trait Implementations
impl<C> !Sync for InstalledFlow<C>
impl<C> Send for InstalledFlow<C> where
C: Send,
C: Send,
impl<C> Unpin for InstalledFlow<C> where
C: Unpin,
C: Unpin,
impl<C> !RefUnwindSafe for InstalledFlow<C>
impl<C> !UnwindSafe for InstalledFlow<C>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,