Trait openid::provider::Provider

source ·
pub trait Provider {
    // 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 Methods§

source

fn auth_uri(&self) -> &Url

The authorization endpoint URI.

See RFC 6749, section 3.1.

source

fn token_uri(&self) -> &Url

The token endpoint URI.

See RFC 6749, section 3.2.

Provided Methods§

source

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.

See RFC 6749, section 2.3.1.

Implementors§