Skip to main content

SimpleOAuthProvider

Trait SimpleOAuthProvider 

Source
pub trait SimpleOAuthProvider:
    Debug
    + Send
    + Sync {
    // Required methods
    fn authorize_url(&self) -> &str;
    fn token_url(&self) -> &str;
    fn default_scopes(&self) -> &'static [&'static str];
}
Expand description

Trait for all OAuth providers

Required Methods§

Source

fn authorize_url(&self) -> &str

The authorization endpoint of the provider

Source

fn token_url(&self) -> &str

The token endpoint of the provider

Source

fn default_scopes(&self) -> &'static [&'static str]

Default scopes used when building the provider’s authorization URL.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> SimpleOAuthProvider for Arc<T>

Source§

fn authorize_url(&self) -> &str

Source§

fn token_url(&self) -> &str

Source§

fn default_scopes(&self) -> &'static [&'static str]

Source§

impl<T> SimpleOAuthProvider for Box<T>

Source§

fn authorize_url(&self) -> &str

Source§

fn token_url(&self) -> &str

Source§

fn default_scopes(&self) -> &'static [&'static str]

Implementors§