Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1IdpConfig
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1IdpConfig
- 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
-
#client_id ⇒ String
OAuth2 client ID.
-
#enabled ⇒ Boolean
(also: #enabled?)
True if allows the user to sign in with the provider.
-
#experiment_percent ⇒ Fixnum
Percent of users who will be prompted/redirected federated login for this IdP Corresponds to the JSON property
experimentPercent. -
#provider ⇒ String
Name of the identity provider.
-
#secret ⇒ String
OAuth2 client secret.
-
#whitelisted_audiences ⇒ Array<String>
Whitelisted client IDs for audience check.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1IdpConfig
constructor
A new instance of GoogleCloudIdentitytoolkitV1IdpConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1IdpConfig
Returns a new instance of GoogleCloudIdentitytoolkitV1IdpConfig.
1196 1197 1198 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1196 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_id ⇒ String
OAuth2 client ID.
Corresponds to the JSON property clientId
1168 1169 1170 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1168 def client_id @client_id end |
#enabled ⇒ Boolean Also known as: enabled?
True if allows the user to sign in with the provider.
Corresponds to the JSON property enabled
1173 1174 1175 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1173 def enabled @enabled end |
#experiment_percent ⇒ Fixnum
Percent of users who will be prompted/redirected federated login for this IdP
Corresponds to the JSON property experimentPercent
1179 1180 1181 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1179 def experiment_percent @experiment_percent end |
#provider ⇒ String
Name of the identity provider.
Corresponds to the JSON property provider
1184 1185 1186 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1184 def provider @provider end |
#secret ⇒ String
OAuth2 client secret.
Corresponds to the JSON property secret
1189 1190 1191 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1189 def secret @secret end |
#whitelisted_audiences ⇒ Array<String>
Whitelisted client IDs for audience check.
Corresponds to the JSON property whitelistedAudiences
1194 1195 1196 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1194 def whitelisted_audiences @whitelisted_audiences end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1201 1202 1203 1204 1205 1206 1207 1208 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1201 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 |