Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2OAuthResponseType

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/identitytoolkit_v2/classes.rb,
lib/google/apis/identitytoolkit_v2/representations.rb,
lib/google/apis/identitytoolkit_v2/representations.rb

Overview

The response type to request for in the OAuth authorization flow. You can set either id_token or code to true, but not both. Setting both types to be simultaneously true (code: true, id_token: true) is not yet supported. See https://openid.net/specs/openid-connect-core-1_0.html#Authentication for a mapping of response type to OAuth 2.0 flow.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2OAuthResponseType

Returns a new instance of GoogleCloudIdentitytoolkitAdminV2OAuthResponseType.



1224
1225
1226
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1224

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codeBoolean Also known as: code?

If true, authorization code is returned from IdP's authorization endpoint. Corresponds to the JSON property code

Returns:

  • (Boolean)


1209
1210
1211
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1209

def code
  @code
end

#id_tokenBoolean Also known as: id_token?

If true, ID token is returned from IdP's authorization endpoint. Corresponds to the JSON property idToken

Returns:

  • (Boolean)


1215
1216
1217
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1215

def id_token
  @id_token
end

#tokenBoolean Also known as: token?

Do not use. The token response type is not supported at the moment. Corresponds to the JSON property token

Returns:

  • (Boolean)


1221
1222
1223
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1221

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1229
1230
1231
1232
1233
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1229

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @id_token = args[:id_token] if args.key?(:id_token)
  @token = args[:token] if args.key?(:token)
end