Struct telescope::web::services::auth::oauth2_providers::github::GitHubOauth [−][src]
pub struct GitHubOauth;
Expand description
Zero sized type representing the GitHub OAuth2 identity provider.
Trait Implementations
type IdentityType = GitHubIdentity
type IdentityType = GitHubIdentity
The type of identity produced by this provider.
Name of this identity provider. See the documentation on the
IdentityProvider
trait for requirements. Read more
Get the client configuration for this Identity Provider.
Add the appropriate scopes for the OAuth authentication request.
fn auth_response(
redir_url: RedirectUrl,
http_req: &HttpRequest
) -> Result<HttpResponse, TelescopeError>
fn auth_response(
redir_url: RedirectUrl,
http_req: &HttpRequest
) -> Result<HttpResponse, TelescopeError>
Get the redirect URL for the associated client and build an HTTP response to take the user there. Saves the CSRF token in the process. Read more
fn token_exchange(
redirect_uri: RedirectUrl,
req: &HttpRequest
) -> Result<BasicTokenResponse, TelescopeError>
fn token_exchange(
redirect_uri: RedirectUrl,
req: &HttpRequest
) -> Result<BasicTokenResponse, TelescopeError>
Extract the response parameters from the callback request invoked by the provider’s authorization page. Read more
Auto Trait Implementations
impl RefUnwindSafe for GitHubOauth
impl Send for GitHubOauth
impl Sync for GitHubOauth
impl Unpin for GitHubOauth
impl UnwindSafe for GitHubOauth
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more