Struct openidconnect::UserInfoRequest [−][src]
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>, { /* fields omitted */ }
Expand description
User info request.
Implementations
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>,
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,
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.
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,
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.
Specifies whether to require the user info response to be a signed JSON Web Token (JWT).
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.
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> !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> where
JE: Send,
JS: Send,
JT: Send,
JU: Send,
K: Send,
impl<'a, JE, JS, JT, JU, K> Sync for UserInfoRequest<'a, JE, JS, JT, JU, K> where
JE: Sync,
JS: Sync,
JT: Sync,
JU: Sync,
K: Sync,
impl<'a, JE, JS, JT, JU, K> Unpin for UserInfoRequest<'a, JE, JS, JT, JU, K> where
JE: Unpin,
JS: Unpin,
JT: Unpin,
JU: Unpin,
K: Unpin,
impl<'a, JE, JS, JT, JU, K> !UnwindSafe for UserInfoRequest<'a, JE, JS, JT, JU, K>