pub struct AutheliaProvider {
pub client_id: String,
pub client_secret: String,
pub redirect_uri: Url,
pub scopes: Vec<String>,
pub http: Client,
/* private fields */
}Fields§
§client_id: String§client_secret: String§redirect_uri: Url§scopes: Vec<String>§http: ClientImplementations§
Trait Implementations§
Source§impl Clone for AutheliaProvider
impl Clone for AutheliaProvider
Source§fn clone(&self) -> AutheliaProvider
fn clone(&self) -> AutheliaProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutheliaProvider
impl Debug for AutheliaProvider
Source§impl OAuthProvider for AutheliaProvider
impl OAuthProvider for AutheliaProvider
Source§fn provider_id(&self) -> &'static str
fn provider_id(&self) -> &'static str
Stable identifier used as the
providers map key, the provider
column value persisted in SQLite, and the subject-namespace prefix.
One of "google", "authelia", "github".Source§fn callback_path(&self) -> &str
fn callback_path(&self) -> &str
The absolute path (no scheme/host) this provider’s registered
redirect_uri resolves to, e.g. /auth/google/callback. Used by
routes::router to mount one callback route per configured provider.fn exchange_code<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
code: &'life1 str,
code_verifier: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<ProviderExchange, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn refresh<'life0, 'life1, 'async_trait>(
&'life0 self,
refresh_token: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ProviderExchange, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for AutheliaProvider
impl !RefUnwindSafe for AutheliaProvider
impl Send for AutheliaProvider
impl Sync for AutheliaProvider
impl Unpin for AutheliaProvider
impl UnsafeUnpin for AutheliaProvider
impl !UnwindSafe for AutheliaProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more