Trait openid::provider::Provider[][src]

pub trait Provider {
    fn auth_uri(&self) -> &Url;
fn token_uri(&self) -> &Url; fn credentials_in_body(&self) -> bool { ... } }

OAuth 2.0 providers.

Required methods

fn auth_uri(&self) -> &Url[src]

The authorization endpoint URI.

See RFC 6749, section 3.1.

fn token_uri(&self) -> &Url[src]

The token endpoint URI.

See RFC 6749, section 3.2.

Loading content...

Provided methods

fn credentials_in_body(&self) -> bool[src]

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.

Loading content...

Implementors

impl Provider for Installed[src]

impl Provider for Web[src]

impl Provider for GitHub[src]

impl Provider for Imgur[src]

impl Provider for Discovered[src]

impl Provider for DiscoveredUma2[src]

Loading content...