pub struct GitLab;Trait Implementations§
Source§impl SimpleOAuthProvider for GitLab
impl SimpleOAuthProvider for GitLab
The authorization endpoint of the provider
Source§fn default_scopes(&self) -> &'static [&'static str]
fn default_scopes(&self) -> &'static [&'static str]
Default scopes used when building the provider’s authorization URL.
Source§fn token_auth_method(&self) -> TokenAuthMethod
fn token_auth_method(&self) -> TokenAuthMethod
How the OAuth client should authenticate to the provider’s token endpoint.
Source§impl UserInfoProvider for GitLab
impl UserInfoProvider for GitLab
Source§fn user_info_url(&self) -> &str
fn user_info_url(&self) -> &str
The URL to fetch the user info from the provider
Source§fn extract_user_info(&self, val: Value) -> Result<UserInfo, Error>
fn extract_user_info(&self, val: Value) -> Result<UserInfo, Error>
Extract the user data from the provider’s user response
Source§fn user_info_headers(
&self,
_credentials: &OAuthCredentials,
) -> Vec<(String, String)>
fn user_info_headers( &self, _credentials: &OAuthCredentials, ) -> Vec<(String, String)>
Additional headers to send when making user info requests to the provider
Auto Trait Implementations§
impl Freeze for GitLab
impl RefUnwindSafe for GitLab
impl Send for GitLab
impl Sync for GitLab
impl Unpin for GitLab
impl UnsafeUnpin for GitLab
impl UnwindSafe for GitLab
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