Struct google_identitytoolkit3::api::VerifyAssertionResponse[][src]

pub struct VerifyAssertionResponse {
    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<String>,
    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>>,
}

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

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

impl Clone for VerifyAssertionResponse[src]

impl Debug for VerifyAssertionResponse[src]

impl Default for VerifyAssertionResponse[src]

impl<'de> Deserialize<'de> for VerifyAssertionResponse[src]

impl ResponseResult for VerifyAssertionResponse[src]

impl Serialize for VerifyAssertionResponse[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.