Struct mas_oidc_client::requests::rp_initiated_logout::LogoutData
source · pub struct LogoutData {
pub id_token_hint: Option<String>,
pub logout_hint: Option<String>,
pub client_id: Option<String>,
pub post_logout_redirect_uri: Option<Url>,
pub ui_locales: Option<Vec<LanguageTag>>,
}
Expand description
The data necessary to build a logout request.
Fields§
§id_token_hint: Option<String>
ID Token previously issued by the OP to the RP.
Recommended, used as a hint about the End-User’s current authenticated session with the Client.
logout_hint: Option<String>
Hint to the Authorization Server about the End-User that is logging out.
The value and meaning of this parameter is left up to the OP’s discretion. For instance, the value might contain an email address, phone number, username, or session identifier pertaining to the RP’s session with the OP for the End-User.
client_id: Option<String>
OAuth 2.0 Client Identifier valid at the Authorization Server.
The most common use case for this parameter is to specify the Client
Identifier when post_logout_redirect_uri
is used but id_token_hint
is not. Another use is for symmetrically encrypted ID Tokens used as
id_token_hint
values that require the Client Identifier to be
specified by other means, so that the ID Tokens can be decrypted by
the OP.
post_logout_redirect_uri: Option<Url>
URI to which the RP is requesting that the End-User’s User Agent be redirected after a logout has been performed.
The value MUST have been previously registered with the OP, using the
post_logout_redirect_uris
registration parameter.
ui_locales: Option<Vec<LanguageTag>>
The End-User’s preferred languages and scripts for the user interface, ordered by preference.
Trait Implementations§
source§impl Clone for LogoutData
impl Clone for LogoutData
source§fn clone(&self) -> LogoutData
fn clone(&self) -> LogoutData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LogoutData
impl Default for LogoutData
source§fn default() -> LogoutData
fn default() -> LogoutData
Auto Trait Implementations§
impl Freeze for LogoutData
impl RefUnwindSafe for LogoutData
impl Send for LogoutData
impl Sync for LogoutData
impl Unpin for LogoutData
impl UnwindSafe for LogoutData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
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>
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