pub struct VerifyAssertionResponse {
Show 39 fields pub action: Option<String>, pub app_installation_url: Option<String>, pub app_scheme: Option<String>, pub context: Option<String>, pub date_of_birth: Option<String>, pub display_name: Option<String>, pub email: Option<String>, pub email_recycled: Option<bool>, pub email_verified: Option<bool>, pub error_message: Option<String>, pub expires_in: Option<i64>, pub federated_id: Option<String>, pub first_name: Option<String>, pub full_name: Option<String>, pub id_token: Option<String>, pub input_email: Option<String>, pub is_new_user: Option<bool>, pub kind: Option<String>, pub language: Option<String>, pub last_name: Option<String>, pub local_id: Option<String>, pub need_confirmation: Option<bool>, pub need_email: Option<bool>, pub nick_name: Option<String>, pub oauth_access_token: Option<String>, pub oauth_authorization_code: Option<String>, pub oauth_expire_in: Option<i32>, pub oauth_id_token: Option<String>, pub oauth_request_token: Option<String>, pub oauth_scope: Option<String>, pub oauth_token_secret: Option<String>, pub original_email: Option<String>, pub photo_url: Option<String>, pub provider_id: Option<String>, pub raw_user_info: Option<String>, pub refresh_token: Option<String>, pub screen_name: Option<String>, pub time_zone: Option<String>, pub verified_provider: Option<Vec<String>>,
}
Expand description

Response of verifying the IDP assertion.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields§

§action: Option<String>

The action code.

§app_installation_url: Option<String>

URL for OTA app installation.

§app_scheme: Option<String>

The custom scheme used by mobile app.

§context: Option<String>

The opaque value used by the client to maintain context info between the authentication request and the IDP callback.

§date_of_birth: Option<String>

The birth date of the IdP account.

§display_name: Option<String>

The display name of the user.

§email: Option<String>

The email returned by the IdP. NOTE: The federated login user may not own the email.

§email_recycled: Option<bool>

It’s true if the email is recycled.

§email_verified: Option<bool>

The value is true if the IDP is also the email provider. It means the user owns the email.

§error_message: Option<String>

Client error code.

§expires_in: Option<i64>

If idToken is STS id token, then this field will be expiration time of STS id token in seconds.

§federated_id: Option<String>

The unique ID identifies the IdP account.

§first_name: Option<String>

The first name of the user.

§full_name: Option<String>

The full name of the user.

§id_token: Option<String>

The ID token.

§input_email: Option<String>

It’s the identifier param in the createAuthUri request if the identifier is an email. It can be used to check whether the user input email is different from the asserted email.

§is_new_user: Option<bool>

True if it’s a new user sign-in, false if it’s a returning user.

§kind: Option<String>

The fixed string “identitytoolkit#VerifyAssertionResponse”.

§language: Option<String>

The language preference of the user.

§last_name: Option<String>

The last name of the user.

§local_id: Option<String>

The RP local ID if it’s already been mapped to the IdP account identified by the federated ID.

§need_confirmation: Option<bool>

Whether the assertion is from a non-trusted IDP and need account linking confirmation.

§need_email: Option<bool>

Whether need client to supply email to complete the federated login flow.

§nick_name: Option<String>

The nick name of the user.

§oauth_access_token: Option<String>

The OAuth2 access token.

§oauth_authorization_code: Option<String>

The OAuth2 authorization code.

§oauth_expire_in: Option<i32>

The lifetime in seconds of the OAuth2 access token.

§oauth_id_token: Option<String>

The OIDC id token.

§oauth_request_token: Option<String>

The user approved request token for the OpenID OAuth extension.

§oauth_scope: Option<String>

The scope for the OpenID OAuth extension.

§oauth_token_secret: Option<String>

The OAuth1 access token secret.

§original_email: Option<String>

The original email stored in the mapping storage. It’s returned when the federated ID is associated to a different email.

§photo_url: Option<String>

The URI of the public accessible profiel picture.

§provider_id: Option<String>

The IdP ID. For white listed IdPs it’s a short domain name e.g. google.com, aol.com, live.net and yahoo.com. If the “providerId” param is set to OpenID OP identifer other than the whilte listed IdPs the OP identifier is returned. If the “identifier” param is federated ID in the createAuthUri request. The domain part of the federated ID is returned.

§raw_user_info: Option<String>

Raw IDP-returned user info.

§refresh_token: Option<String>

If idToken is STS id token, then this field will be refresh token.

§screen_name: Option<String>

The screen_name of a Twitter user or the login name at Github.

§time_zone: Option<String>

The timezone of the user.

§verified_provider: Option<Vec<String>>

When action is ‘map’, contains the idps which can be used for confirmation.

Trait Implementations§

source§

impl Clone for VerifyAssertionResponse

source§

fn clone(&self) -> VerifyAssertionResponse

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VerifyAssertionResponse

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for VerifyAssertionResponse

source§

fn default() -> VerifyAssertionResponse

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for VerifyAssertionResponse

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for VerifyAssertionResponse

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ResponseResult for VerifyAssertionResponse

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,