pub struct AuthorisationRequest {
pub response_type: ResponseType,
pub response_mode: Option<ResponseMode>,
pub client_id: String,
pub state: Option<String>,
pub pkce_request: Option<PkceRequest>,
pub redirect_uri: Url,
pub scope: BTreeSet<String>,
pub nonce: Option<String>,
pub oidc_ext: AuthorisationRequestOidc,
pub max_age: Option<i64>,
pub unknown_keys: BTreeMap<String, Value>,
}
Expand description
An OAuth2 client redirects to the authorisation server with Authorisation Request parameters.
Fields§
§response_type: ResponseType
§response_mode: Option<ResponseMode>
Response mode.
Optional; defaults to query
for response_type=code
(Auth Code), and
fragment
for response_type=token
(Implicit Grant, which we probably
won’t support).
Reference: OAuth 2.0 Multiple Response Type Encoding Practices: Response Modes
client_id: String
§state: Option<String>
§pkce_request: Option<PkceRequest>
§redirect_uri: Url
§scope: BTreeSet<String>
§nonce: Option<String>
§oidc_ext: AuthorisationRequestOidc
§max_age: Option<i64>
§unknown_keys: BTreeMap<String, Value>
Implementations§
Source§impl AuthorisationRequest
impl AuthorisationRequest
Sourcepub const fn get_response_mode(&self) -> Option<ResponseMode>
pub const fn get_response_mode(&self) -> Option<ResponseMode>
Get the response_mode
appropriate for this request, taking into
account defaults from the response_type
parameter.
Returns None
if the selection is invalid.
Reference: OAuth 2.0 Multiple Response Type Encoding Practices: Response Modes
Trait Implementations§
Source§impl Clone for AuthorisationRequest
impl Clone for AuthorisationRequest
Source§fn clone(&self) -> AuthorisationRequest
fn clone(&self) -> AuthorisationRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AuthorisationRequest
impl Debug for AuthorisationRequest
Source§impl<'de> Deserialize<'de> for AuthorisationRequest
impl<'de> Deserialize<'de> for AuthorisationRequest
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 AuthorisationRequest
impl RefUnwindSafe for AuthorisationRequest
impl Send for AuthorisationRequest
impl Sync for AuthorisationRequest
impl Unpin for AuthorisationRequest
impl UnwindSafe for AuthorisationRequest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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