Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1IdpConfig

Inherits:
Object
  • Object
show all
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

Config of an identity provider.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1IdpConfig

Returns a new instance of GoogleCloudIdentitytoolkitV1IdpConfig.



1183
1184
1185
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1183

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

Instance Attribute Details

#client_idString

OAuth2 client ID. Corresponds to the JSON property clientId

Returns:

  • (String)


1155
1156
1157
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1155

def client_id
  @client_id
end

#enabledBoolean Also known as: enabled?

True if allows the user to sign in with the provider. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


1160
1161
1162
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1160

def enabled
  @enabled
end

#experiment_percentFixnum

Percent of users who will be prompted/redirected federated login for this IdP Corresponds to the JSON property experimentPercent

Returns:

  • (Fixnum)


1166
1167
1168
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1166

def experiment_percent
  @experiment_percent
end

#providerString

Name of the identity provider. Corresponds to the JSON property provider

Returns:

  • (String)


1171
1172
1173
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1171

def provider
  @provider
end

#secretString

OAuth2 client secret. Corresponds to the JSON property secret

Returns:

  • (String)


1176
1177
1178
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1176

def secret
  @secret
end

#whitelisted_audiencesArray<String>

Whitelisted client IDs for audience check. Corresponds to the JSON property whitelistedAudiences

Returns:

  • (Array<String>)


1181
1182
1183
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1181

def whitelisted_audiences
  @whitelisted_audiences
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1188
1189
1190
1191
1192
1193
1194
1195
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1188

def update!(**args)
  @client_id = args[:client_id] if args.key?(:client_id)
  @enabled = args[:enabled] if args.key?(:enabled)
  @experiment_percent = args[:experiment_percent] if args.key?(:experiment_percent)
  @provider = args[:provider] if args.key?(:provider)
  @secret = args[:secret] if args.key?(:secret)
  @whitelisted_audiences = args[:whitelisted_audiences] if args.key?(:whitelisted_audiences)
end