mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-23 02:18:53 +01:00
feat(GetToken): Add application_secret method to GetToken trait.
This makes decoupling Authenticator and individual flows easier while allowing for refreshing tokens.
This commit is contained in:
@@ -205,6 +205,10 @@ pub trait GetToken {
|
||||
I: Iterator<Item = &'b T>;
|
||||
|
||||
fn api_key(&mut self) -> Option<String>;
|
||||
|
||||
/// 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.
|
||||
fn application_secret(&self) -> ApplicationSecret;
|
||||
}
|
||||
|
||||
/// Represents a token as returned by OAuth2 servers.
|
||||
|
||||
Reference in New Issue
Block a user