pub struct GoogleProvider {
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 GoogleProvider
impl Clone for GoogleProvider
Source§fn clone(&self) -> GoogleProvider
fn clone(&self) -> GoogleProvider
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 GoogleProvider
impl Debug for GoogleProvider
Source§impl OAuthProvider for GoogleProvider
impl OAuthProvider for GoogleProvider
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 GoogleProvider
impl !RefUnwindSafe for GoogleProvider
impl Send for GoogleProvider
impl Sync for GoogleProvider
impl Unpin for GoogleProvider
impl UnsafeUnpin for GoogleProvider
impl !UnwindSafe for GoogleProvider
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