pub trait SimpleOAuthProvider:
Debug
+ Send
+ Sync {
// Required methods
fn authorize_url(&self) -> &str;
fn token_url(&self) -> &str;
// Provided methods
fn default_scopes(&self) -> &'static [&'static str] { ... }
fn token_auth_method(&self) -> TokenAuthMethod { ... }
}Expand description
Trait for all OAuth providers
Required Methods§
The authorization endpoint of the provider
Provided Methods§
Sourcefn default_scopes(&self) -> &'static [&'static str]
fn default_scopes(&self) -> &'static [&'static str]
Default scopes used when building the provider’s authorization URL.
Sourcefn token_auth_method(&self) -> TokenAuthMethod
fn token_auth_method(&self) -> TokenAuthMethod
How the OAuth client should authenticate to the provider’s token endpoint.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".