pub struct PARRequest {
pub response_type: String,
pub client_id: String,
pub redirect_uri: String,
pub scope: Option<String>,
pub state: Option<String>,
pub nonce: Option<String>,
pub code_challenge: Option<String>,
pub code_challenge_method: Option<String>,
}Expand description
Pushed Authorization Request parameters (RFC 9126)
Required fields are non-optional so Axum Form validation returns 422 automatically when they are missing from the request body.
Fields§
§response_type: StringRequired: OAuth 2.0 response type (e.g., “code”)
client_id: StringRequired: The client identifier
redirect_uri: StringRequired: Redirection URI for the authorization response
scope: Option<String>Optional: Requested scope(s)
state: Option<String>Optional: Opaque state value for the client
nonce: Option<String>Optional: Nonce for OIDC requests
code_challenge: Option<String>Optional: PKCE code challenge
code_challenge_method: Option<String>Optional: PKCE code challenge method (e.g., “S256”)
Trait Implementations§
Source§impl Debug for PARRequest
impl Debug for PARRequest
Source§impl<'de> Deserialize<'de> for PARRequest
impl<'de> Deserialize<'de> for PARRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PARRequest
impl RefUnwindSafe for PARRequest
impl Send for PARRequest
impl Sync for PARRequest
impl Unpin for PARRequest
impl UnsafeUnpin for PARRequest
impl UnwindSafe for PARRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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 more