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>>,
}
experimental-oidc
only.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,
§impl<T> CompatExt for T
impl<T> CompatExt for T
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, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§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>
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