Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithIdpRequest
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithIdpRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/identitytoolkit_v1/classes.rb,
lib/google/apis/identitytoolkit_v1/representations.rb,
lib/google/apis/identitytoolkit_v1/representations.rb
Overview
Request message for SignInWithIdp.
Instance Attribute Summary collapse
-
#auto_create ⇒ Boolean
(also: #auto_create?)
Corresponds to the JSON property
autoCreate
. -
#delegated_project_number ⇒ Fixnum
Corresponds to the JSON property
delegatedProjectNumber
. -
#id_token ⇒ String
A valid Identity Platform ID token.
-
#pending_id_token ⇒ String
Corresponds to the JSON property
pendingIdToken
. -
#pending_token ⇒ String
An opaque string from a previous SignInWithIdp response.
-
#post_body ⇒ String
If the user is signing in with an authorization response obtained via a previous CreateAuthUri authorization request, this is the body of the HTTP POST callback from the IdP, if present.
-
#request_uri ⇒ String
Required.
-
#return_idp_credential ⇒ Boolean
(also: #return_idp_credential?)
Whether or not to return OAuth credentials from the IdP on the following errors:
FEDERATED_USER_ID_ALREADY_LINKED
andEMAIL_EXISTS
. -
#return_refresh_token ⇒ Boolean
(also: #return_refresh_token?)
Whether or not to return the OAuth refresh token from the IdP, if available.
-
#return_secure_token ⇒ Boolean
(also: #return_secure_token?)
Should always be true.
-
#session_id ⇒ String
The session ID returned from a previous CreateAuthUri call.
-
#tenant_id ⇒ String
The ID of the Identity Platform tenant the user is signing in to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithIdpRequest
constructor
A new instance of GoogleCloudIdentitytoolkitV1SignInWithIdpRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithIdpRequest
Returns a new instance of GoogleCloudIdentitytoolkitV1SignInWithIdpRequest.
2618 2619 2620 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2618 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_create ⇒ Boolean Also known as: auto_create?
Corresponds to the JSON property autoCreate
2524 2525 2526 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2524 def auto_create @auto_create end |
#delegated_project_number ⇒ Fixnum
Corresponds to the JSON property delegatedProjectNumber
2530 2531 2532 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2530 def delegated_project_number @delegated_project_number end |
#id_token ⇒ String
A valid Identity Platform ID token. If passed, the user's account at the IdP
will be linked to the account represented by this ID token.
Corresponds to the JSON property idToken
2536 2537 2538 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2536 def id_token @id_token end |
#pending_id_token ⇒ String
Corresponds to the JSON property pendingIdToken
2541 2542 2543 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2541 def pending_id_token @pending_id_token end |
#pending_token ⇒ String
An opaque string from a previous SignInWithIdp response. If set, it can be
used to repeat the sign-in operation from the previous SignInWithIdp operation.
This may be present if the user needs to confirm their account information as
part of a previous federated login attempt, or perform account linking.
Corresponds to the JSON property pendingToken
2549 2550 2551 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2549 def pending_token @pending_token end |
#post_body ⇒ String
If the user is signing in with an authorization response obtained via a
previous CreateAuthUri authorization request, this is the body of the HTTP
POST callback from the IdP, if present. Otherwise, if the user is signing in
with a manually provided IdP credential, this should be a URL-encoded form
that contains the credential (e.g. an ID token or access token for OAuth 2.0
IdPs) and the provider ID of the IdP that issued the credential. For example,
if the user is signing in to the Google provider using a Google ID token, this
should be set to id_token=[GOOGLE_ID_TOKEN]&providerId=google.com
, where [
GOOGLE_ID_TOKEN]
should be replaced with the Google ID token. If the user is
signing in to the Facebook provider using a Facebook authentication token,
this should be set to id_token=[FACEBOOK_AUTHENTICATION_TOKEN]&providerId=
facebook. com&nonce= [NONCE]
, where [FACEBOOK_AUTHENTICATION_TOKEN]
should
be replaced with the Facebook authentication token. Nonce is required for
validating the token. The request will fail if no nonce is provided. If the
user is signing in to the Facebook provider using a Facebook access token,
this should be set to access_token=[FACEBOOK_ACCESS_TOKEN]&providerId=
facebook. com
, where [FACEBOOK_ACCESS_TOKEN]
should be replaced with the
Facebook access token. If the user is signing in to the Twitter provider using
a Twitter OAuth 1.0 credential, this should be set to access_token=[
TWITTER_ACCESS_TOKEN]&oauth_token_secret= [TWITTER_TOKEN_SECRET]&providerId=
twitter.com
, where [TWITTER_ACCESS_TOKEN]
and [TWITTER_TOKEN_SECRET]
should be replaced with the Twitter OAuth access token and Twitter OAuth token
secret respectively.
Corresponds to the JSON property postBody
2576 2577 2578 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2576 def post_body @post_body end |
#request_uri ⇒ String
Required. The URL to which the IdP redirects the user back. This can be set to
http://localhost
if the user is signing in with a manually provided IdP
credential.
Corresponds to the JSON property requestUri
2583 2584 2585 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2583 def request_uri @request_uri end |
#return_idp_credential ⇒ Boolean Also known as: return_idp_credential?
Whether or not to return OAuth credentials from the IdP on the following
errors: FEDERATED_USER_ID_ALREADY_LINKED
and EMAIL_EXISTS
.
Corresponds to the JSON property returnIdpCredential
2589 2590 2591 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2589 def return_idp_credential @return_idp_credential end |
#return_refresh_token ⇒ Boolean Also known as: return_refresh_token?
Whether or not to return the OAuth refresh token from the IdP, if available.
Corresponds to the JSON property returnRefreshToken
2595 2596 2597 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2595 def return_refresh_token @return_refresh_token end |
#return_secure_token ⇒ Boolean Also known as: return_secure_token?
Should always be true.
Corresponds to the JSON property returnSecureToken
2601 2602 2603 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2601 def return_secure_token @return_secure_token end |
#session_id ⇒ String
The session ID returned from a previous CreateAuthUri call. This field is
verified against that session ID to prevent session fixation attacks. Required
if the user is signing in with an authorization response from a previous
CreateAuthUri authorization request.
Corresponds to the JSON property sessionId
2610 2611 2612 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2610 def session_id @session_id end |
#tenant_id ⇒ String
The ID of the Identity Platform tenant the user is signing in to. If not set,
the user will sign in to the default Identity Platform project.
Corresponds to the JSON property tenantId
2616 2617 2618 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2616 def tenant_id @tenant_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2623 def update!(**args) @auto_create = args[:auto_create] if args.key?(:auto_create) @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) @id_token = args[:id_token] if args.key?(:id_token) @pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token) @pending_token = args[:pending_token] if args.key?(:pending_token) @post_body = args[:post_body] if args.key?(:post_body) @request_uri = args[:request_uri] if args.key?(:request_uri) @return_idp_credential = args[:return_idp_credential] if args.key?(:return_idp_credential) @return_refresh_token = args[:return_refresh_token] if args.key?(:return_refresh_token) @return_secure_token = args[:return_secure_token] if args.key?(:return_secure_token) @session_id = args[:session_id] if args.key?(:session_id) @tenant_id = args[:tenant_id] if args.key?(:tenant_id) end |