[−][src]Trait yup_oauth2::GetToken
A provider for authorization tokens, yielding tokens valid for a given scope.
The api_key()
method is an alternative in case there are no scopes or
if no user is involved.
Required methods
fn token<I, T>(
&mut self,
scopes: I
) -> Box<dyn Future<Item = Token, Error = RequestError> + Send> where
T: Into<String>,
I: IntoIterator<Item = T>,
&mut self,
scopes: I
) -> Box<dyn Future<Item = Token, Error = RequestError> + Send> where
T: Into<String>,
I: IntoIterator<Item = T>,
fn api_key(&mut self) -> Option<String>
fn application_secret(&self) -> ApplicationSecret
Return an application secret with at least token_uri, client_secret, and client_id filled in. This is used for refreshing tokens without interaction from the flow.