Trait inth_oauth2_async::provider::Provider
source · pub trait Provider {
type Lifetime: Lifetime;
type Token: Token<Self::Lifetime>;
// Required methods
fn auth_uri(&self) -> &Url;
fn token_uri(&self) -> &Url;
// Provided method
fn credentials_in_body(&self) -> bool { ... }
}
Expand description
OAuth 2.0 providers.
Required Associated Types§
Required Methods§
Provided Methods§
sourcefn credentials_in_body(&self) -> bool
fn credentials_in_body(&self) -> bool
Provider requires credentials via request body.
Although not recommended by the RFC, some providers require client_id
and client_secret
as part of the request body.
Object Safety§
This trait is not object safe.