pub struct OAuth2Client {
pub client: CasdoorClient,
pub http_client: Client,
}
Fields§
§client: CasdoorClient
§http_client: Client
Implementations§
Source§impl OAuth2Client
impl OAuth2Client
pub async fn refresh_token( self, refresh_token: RefreshToken, token_url: TokenUrl, ) -> Result<CasdoorTokenResponse>
pub async fn get_oauth_token( self, code: AuthorizationCode, redirect_url: RedirectUrl, token_url: TokenUrl, ) -> Result<CasdoorTokenResponse>
pub async fn get_introspect_access_token( self, intro_url: IntrospectionUrl, token: &AccessToken, ) -> Result<BasicTokenIntrospectionResponse>
Auto Trait Implementations§
impl Freeze for OAuth2Client
impl !RefUnwindSafe for OAuth2Client
impl Send for OAuth2Client
impl Sync for OAuth2Client
impl Unpin for OAuth2Client
impl !UnwindSafe for OAuth2Client
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