pub struct GitHubProvider;Expand description
GitHub OAuth2 provider
Implementations§
Source§impl GitHubProvider
impl GitHubProvider
Sourcepub fn config(
client_id: String,
client_secret: String,
redirect_url: String,
) -> OAuth2Config
pub fn config( client_id: String, client_secret: String, redirect_url: String, ) -> OAuth2Config
Create a new GitHub OAuth2 configuration
Sourcepub async fn get_user_info(access_token: &str) -> Result<GitHubUser, AuthError>
pub async fn get_user_info(access_token: &str) -> Result<GitHubUser, AuthError>
Fetch user info from GitHub
Auto Trait Implementations§
impl Freeze for GitHubProvider
impl RefUnwindSafe for GitHubProvider
impl Send for GitHubProvider
impl Sync for GitHubProvider
impl Unpin 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
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging