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