pub struct OAuthCodeExchangeRequest<'a> {
pub token_endpoint: &'a str,
pub client_id: &'a str,
pub client_secret: Option<&'a str>,
pub redirect_uri: &'a str,
pub code: &'a str,
pub code_verifier: &'a str,
}Expand description
Minimal request struct for an OAuth2 authorization-code exchange
with PKCE. Callers pass the raw code received on the redirect
plus the code_verifier they generated at flow-start; Axon posts
the exchange to the configured token_endpoint and returns a
VerifiedPayload on 2xx.
Fields§
§token_endpoint: &'a str§client_id: &'a str§client_secret: Option<&'a str>§redirect_uri: &'a str§code: &'a str§code_verifier: &'a strAuto Trait Implementations§
impl<'a> Freeze for OAuthCodeExchangeRequest<'a>
impl<'a> RefUnwindSafe for OAuthCodeExchangeRequest<'a>
impl<'a> Send for OAuthCodeExchangeRequest<'a>
impl<'a> Sync for OAuthCodeExchangeRequest<'a>
impl<'a> Unpin for OAuthCodeExchangeRequest<'a>
impl<'a> UnsafeUnpin for OAuthCodeExchangeRequest<'a>
impl<'a> UnwindSafe for OAuthCodeExchangeRequest<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.