pub struct LogoutRequest { /* private fields */ }
Expand description
A request to the end session endpoint.
Implementations§
Source§impl LogoutRequest
impl LogoutRequest
Sourcepub fn set_id_token_hint<AC, GC, JE, JS, JT>(
self,
id_token_hint: &IdToken<AC, GC, JE, JS, JT>,
) -> Selfwhere
AC: AdditionalClaims,
GC: GenderClaim,
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
pub fn set_id_token_hint<AC, GC, JE, JS, JT>(
self,
id_token_hint: &IdToken<AC, GC, JE, JS, JT>,
) -> Selfwhere
AC: AdditionalClaims,
GC: GenderClaim,
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
Provides an ID token previously issued by this OpenID Connect Provider as a hint about the user’s identity.
Sourcepub fn set_logout_hint(self, logout_hint: LogoutHint) -> Self
pub fn set_logout_hint(self, logout_hint: LogoutHint) -> Self
Provides the OpenID Connect Provider with a hint about the user’s identity.
The nature of this hint is specific to each provider.
Sourcepub fn set_client_id(self, client_id: ClientId) -> Self
pub fn set_client_id(self, client_id: ClientId) -> Self
Provides the OpenID Connect Provider with the client identifier.
When both this and id_token_hint
are set, the provider must verify that
this client id matches the one used when the ID token was issued.
Sourcepub fn set_post_logout_redirect_uri(
self,
redirect_uri: PostLogoutRedirectUrl,
) -> Self
pub fn set_post_logout_redirect_uri( self, redirect_uri: PostLogoutRedirectUrl, ) -> Self
Provides the OpenID Connect Provider with a URI to redirect to after the logout has been performed.
Sourcepub fn set_state(self, state: CsrfToken) -> Self
pub fn set_state(self, state: CsrfToken) -> Self
Specify an opaque value that the OpenID Connect Provider should pass back to your application using the state parameter when redirecting to post_logout_redirect_uri.
Sourcepub fn add_ui_locale(self, ui_locale: LanguageTag) -> Self
pub fn add_ui_locale(self, ui_locale: LanguageTag) -> Self
Requests the preferred languages for the user interface presented by the OpenID Connect Provider.
Languages should be added in order of preference.
Sourcepub fn http_get_url(self) -> Url
pub fn http_get_url(self) -> Url
Returns the full logout URL. In order to logout, a GET request should be made to this URL by the client’s browser.
Trait Implementations§
Source§impl From<EndSessionUrl> for LogoutRequest
impl From<EndSessionUrl> for LogoutRequest
Source§fn from(value: EndSessionUrl) -> Self
fn from(value: EndSessionUrl) -> Self
Auto Trait Implementations§
impl Freeze for LogoutRequest
impl RefUnwindSafe for LogoutRequest
impl Send for LogoutRequest
impl Sync for LogoutRequest
impl Unpin for LogoutRequest
impl UnwindSafe for LogoutRequest
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> 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