pub struct AuthorizationCodeFlow {
pub client: BasicClient,
pub authorize_url: Url,
pub csrf_state: CsrfToken,
pub pkce_code_verifier: PkceCodeVerifier,
}
Expand description
An object representing an OAuth 2.0 authorization code flow.
Fields§
§client: BasicClient
An HTTP client configured for OAuth2 authentication
The authentication HTTP endpoint
csrf_state: CsrfToken
The CSRF token
pkce_code_verifier: PkceCodeVerifier
The PKCE code verifier
Implementations§
Source§impl AuthorizationCodeFlow
impl AuthorizationCodeFlow
Sourcepub async fn exchange(
self,
http_client: Arc<dyn HttpClient>,
code: AuthorizationCode,
) -> Result<StandardTokenResponse<EmptyExtraTokenFields, BasicTokenType>>
pub async fn exchange( self, http_client: Arc<dyn HttpClient>, code: AuthorizationCode, ) -> Result<StandardTokenResponse<EmptyExtraTokenFields, BasicTokenType>>
Exchange an authorization code for a token.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthorizationCodeFlow
impl RefUnwindSafe for AuthorizationCodeFlow
impl Send for AuthorizationCodeFlow
impl Sync for AuthorizationCodeFlow
impl Unpin for AuthorizationCodeFlow
impl UnwindSafe for AuthorizationCodeFlow
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