Trait inth_oauth2_async::provider::Provider[][src]

pub trait Provider {
    type Lifetime: Lifetime;
    type Token: Token<Self::Lifetime>;
    fn auth_uri(&self) -> &Url;
fn token_uri(&self) -> &Url; fn credentials_in_body(&self) -> bool { ... } }
Expand description

OAuth 2.0 providers.

Associated Types

The lifetime of tokens issued by the provider.

The type of token issued by the provider.

Required methods

The authorization endpoint URI.

See RFC 6749, section 3.1.

The token endpoint URI.

See RFC 6749, section 3.2.

Provided methods

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.

See RFC 6749, section 2.3.1.

Implementors