[−][src]Struct openidconnect::UserInfoRequest
User info request.
Methods
impl<JE, JS, JT, JU, K> UserInfoRequest<JE, JS, JT, JU, K> where
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
[src]
JE: JweContentEncryptionAlgorithm<JT>,
JS: JwsSigningAlgorithm<JT>,
JT: JsonWebKeyType,
JU: JsonWebKeyUse,
K: JsonWebKey<JS, JT, JU>,
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: Fail,
[src]
self,
http_client: HC
) -> Result<UserInfoClaims<AC, GC>, UserInfoError<RE>> where
AC: AdditionalClaims,
GC: GenderClaim,
HC: FnOnce(HttpRequest) -> Result<HttpResponse, RE>,
RE: Fail,
Submits this request to the associated user info endpoint using the specified synchronous HTTP client.
pub fn request_async<AC, C, F, GC, HC, RE>(
self,
http_client: C
) -> impl Future<Item = UserInfoClaims<AC, GC>, Error = UserInfoError<RE>> where
AC: AdditionalClaims,
C: FnOnce(HttpRequest) -> F,
F: Future<Item = HttpResponse, Error = RE>,
GC: GenderClaim,
HC: FnOnce(HttpRequest) -> Result<HttpResponse, RE>,
RE: Fail,
[src]
self,
http_client: C
) -> impl Future<Item = UserInfoClaims<AC, GC>, Error = UserInfoError<RE>> where
AC: AdditionalClaims,
C: FnOnce(HttpRequest) -> F,
F: Future<Item = HttpResponse, Error = RE>,
GC: GenderClaim,
HC: FnOnce(HttpRequest) -> Result<HttpResponse, RE>,
RE: Fail,
Submits this request to the associated user info endpoint using the specified asynchronous HTTP client.
pub fn require_signed_response(self, require_signed_response: bool) -> Self
[src]
Specifies whether to require the user info response to be a signed JSON Web Token (JWT).
pub fn require_issuer_match(self, iss_required: bool) -> Self
[src]
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.
pub fn require_audience_match(self, aud_required: bool) -> Self
[src]
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<JE, JS, JT, JU, K> Unpin for UserInfoRequest<JE, JS, JT, JU, K> where
JE: Unpin,
JS: Unpin,
JT: Unpin,
JU: Unpin,
K: Unpin,
JE: Unpin,
JS: Unpin,
JT: Unpin,
JU: Unpin,
K: Unpin,
impl<JE, JS, JT, JU, K> !Sync for UserInfoRequest<JE, JS, JT, JU, K>
impl<JE, JS, JT, JU, K> !Send for UserInfoRequest<JE, JS, JT, JU, K>
impl<JE, JS, JT, JU, K> !UnwindSafe for UserInfoRequest<JE, JS, JT, JU, K>
impl<JE, JS, JT, JU, K> !RefUnwindSafe for UserInfoRequest<JE, JS, JT, JU, K>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,