[−][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> Send for InstalledFlow<C> where
C: Send,
C: Send,
impl<C> !Sync for InstalledFlow<C>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Typeable for T where
T: Any,
T: Any,