pub struct UserInfoRequest<'a, JE, JS, JT, JU, K>where
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,{ /* private fields */ }
Expand description
User info request.
Implementations§
Source§impl<'a, JE, JS, JT, JU, K> UserInfoRequest<'a, JE, JS, JT, JU, K>where
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
impl<'a, JE, JS, JT, JU, K> UserInfoRequest<'a, JE, JS, JT, JU, K>where
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
Sourcepub fn request<AC, GC, HC, RE>(
self,
http_client: HC,
) -> Result<UserInfoClaims<AC, GC>, UserInfoError<RE>>where
AC: AdditionalClaims,
GC: GenderClaim,
HC: FnOnce(HttpRequest) -> Result<HttpResponse, RE>,
RE: Error + 'static,
pub fn request<AC, GC, HC, RE>(
self,
http_client: HC,
) -> Result<UserInfoClaims<AC, GC>, UserInfoError<RE>>where
AC: AdditionalClaims,
GC: GenderClaim,
HC: FnOnce(HttpRequest) -> Result<HttpResponse, RE>,
RE: Error + 'static,
Submits this request to the associated user info endpoint using the specified synchronous HTTP client.
Sourcepub async fn request_async<AC, C, F, GC, RE>(
self,
http_client: C,
) -> Result<UserInfoClaims<AC, GC>, UserInfoError<RE>>where
AC: AdditionalClaims,
C: FnOnce(HttpRequest) -> F,
F: Future<Output = Result<HttpResponse, RE>>,
GC: GenderClaim,
RE: Error + 'static,
pub async fn request_async<AC, C, F, GC, RE>(
self,
http_client: C,
) -> Result<UserInfoClaims<AC, GC>, UserInfoError<RE>>where
AC: AdditionalClaims,
C: FnOnce(HttpRequest) -> F,
F: Future<Output = Result<HttpResponse, RE>>,
GC: GenderClaim,
RE: Error + 'static,
Submits this request to the associated user info endpoint using the specified asynchronous HTTP client.
Sourcepub fn require_signed_response(self, require_signed_response: bool) -> Self
pub fn require_signed_response(self, require_signed_response: bool) -> Self
Specifies whether to require the user info response to be a signed JSON Web Token (JWT).
Sourcepub fn require_issuer_match(self, iss_required: bool) -> Self
pub fn require_issuer_match(self, iss_required: bool) -> Self
Specifies whether to require the issuer of the signed JWT response to match the expected issuer URL for this provider.
This option has no effect on unsigned JSON responses.
Sourcepub fn require_audience_match(self, aud_required: bool) -> Self
pub fn require_audience_match(self, aud_required: bool) -> Self
Specifies whether to require the audience of the signed JWT response to match the expected audience (client ID).
This option has no effect on unsigned JSON responses.
Auto Trait Implementations§
impl<'a, JE, JS, JT, JU, K> Freeze for UserInfoRequest<'a, JE, JS, JT, JU, K>
impl<'a, JE, JS, JT, JU, K> !RefUnwindSafe for UserInfoRequest<'a, JE, JS, JT, JU, K>
impl<'a, JE, JS, JT, JU, K> Send for UserInfoRequest<'a, JE, JS, JT, JU, K>
impl<'a, JE, JS, JT, JU, K> Sync for UserInfoRequest<'a, JE, JS, JT, JU, K>
impl<'a, JE, JS, JT, JU, K> Unpin for UserInfoRequest<'a, JE, JS, JT, JU, K>
impl<'a, JE, JS, JT, JU, K> !UnwindSafe for UserInfoRequest<'a, JE, JS, JT, JU, K>
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
Mutably borrows from an owned value. Read more
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>
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