[][src]Struct openidconnect::UserInfoRequest

pub struct UserInfoRequest<JE, JS, JT, JU, K> where
    JE: JweContentEncryptionAlgorithm<JT>,
    JS: JwsSigningAlgorithm<JT>,
    JT: JsonWebKeyType,
    JU: JsonWebKeyUse,
    K: JsonWebKey<JS, JT, JU>, 
{ /* fields omitted */ }

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]

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]

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]

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

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]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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>, 

type Err = <U as TryFrom<T>>::Err