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 duplicate 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<AuthorisationRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AuthorisationRequest, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AuthorisationRequest
impl Serialize for AuthorisationRequest
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].