Class: Google::Apis::IdentitytoolkitV3::CreateAuthUriRequest

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

Overview

Request to get the IDP authentication URL.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CreateAuthUriRequest

Returns a new instance of CreateAuthUriRequest.



360
361
362
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 360

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

Instance Attribute Details

#app_idString

The app ID of the mobile app, base64(CERT_SHA1):PACKAGE_NAME for Android, BUNDLE_ID for iOS. Corresponds to the JSON property appId

Returns:

  • (String)


285
286
287
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 285

def app_id
  @app_id
end

#auth_flow_typeString

Explicitly specify the auth flow type. Currently only support "CODE_FLOW" type. The field is only used for Google provider. Corresponds to the JSON property authFlowType

Returns:

  • (String)


291
292
293
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 291

def auth_flow_type
  @auth_flow_type
end

#client_idString

The relying party OAuth client ID. Corresponds to the JSON property clientId

Returns:

  • (String)


296
297
298
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 296

def client_id
  @client_id
end

#contextString

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

Returns:

  • (String)


302
303
304
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 302

def context
  @context
end

#continue_uriString

The URI to which the IDP redirects the user after the federated login flow. Corresponds to the JSON property continueUri

Returns:

  • (String)


307
308
309
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 307

def continue_uri
  @continue_uri
end

#custom_parameterHash<String,String>

The query parameter that client can customize by themselves in auth url. The following parameters are reserved for server so that they cannot be customized by clients: client_id, response_type, scope, redirect_uri, state, oauth_token. Corresponds to the JSON property customParameter

Returns:

  • (Hash<String,String>)


314
315
316
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 314

def custom_parameter
  @custom_parameter
end

#hosted_domainString

The hosted domain to restrict sign-in to accounts at that domain for Google Apps hosted accounts. Corresponds to the JSON property hostedDomain

Returns:

  • (String)


320
321
322
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 320

def hosted_domain
  @hosted_domain
end

#identifierString

The email or federated ID of the user. Corresponds to the JSON property identifier

Returns:

  • (String)


325
326
327
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 325

def identifier
  @identifier
end

#oauth_consumer_keyString

The developer's consumer key for OpenId OAuth Extension Corresponds to the JSON property oauthConsumerKey

Returns:

  • (String)


330
331
332
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 330

def oauth_consumer_key
  @oauth_consumer_key
end

#oauth_scopeString

Additional oauth scopes, beyond the basid user profile, that the user would be prompted to grant Corresponds to the JSON property oauthScope

Returns:

  • (String)


336
337
338
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 336

def oauth_scope
  @oauth_scope
end

#openid_realmString

Optional realm for OpenID protocol. The sub string "scheme://domain:port" of the param "continueUri" is used if this is not set. Corresponds to the JSON property openidRealm

Returns:

  • (String)


342
343
344
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 342

def openid_realm
  @openid_realm
end

#ota_appString

The native app package for OTA installation. Corresponds to the JSON property otaApp

Returns:

  • (String)


347
348
349
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 347

def ota_app
  @ota_app
end

#provider_idString

The IdP ID. For white listed IdPs it's a short domain name e.g. google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier. Corresponds to the JSON property providerId

Returns:

  • (String)


353
354
355
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 353

def provider_id
  @provider_id
end

#session_idString

The session_id passed by client. Corresponds to the JSON property sessionId

Returns:

  • (String)


358
359
360
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 358

def session_id
  @session_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 365

def update!(**args)
  @app_id = args[:app_id] if args.key?(:app_id)
  @auth_flow_type = args[:auth_flow_type] if args.key?(:auth_flow_type)
  @client_id = args[:client_id] if args.key?(:client_id)
  @context = args[:context] if args.key?(:context)
  @continue_uri = args[:continue_uri] if args.key?(:continue_uri)
  @custom_parameter = args[:custom_parameter] if args.key?(:custom_parameter)
  @hosted_domain = args[:hosted_domain] if args.key?(:hosted_domain)
  @identifier = args[:identifier] if args.key?(:identifier)
  @oauth_consumer_key = args[:oauth_consumer_key] if args.key?(:oauth_consumer_key)
  @oauth_scope = args[:oauth_scope] if args.key?(:oauth_scope)
  @openid_realm = args[:openid_realm] if args.key?(:openid_realm)
  @ota_app = args[:ota_app] if args.key?(:ota_app)
  @provider_id = args[:provider_id] if args.key?(:provider_id)
  @session_id = args[:session_id] if args.key?(:session_id)
end