Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
- 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
Configuration options for authenticating with an OAuth IDP.
Instance Attribute Summary collapse
-
#client_id ⇒ String
The client id of an OAuth client.
-
#client_secret ⇒ String
The client secret of the OAuth client, to enable OIDC code flow.
-
#display_name ⇒ String
The config's display name set by developers.
-
#enabled ⇒ Boolean
(also: #enabled?)
True if allows the user to sign in with the provider.
-
#issuer ⇒ String
For OIDC Idps, the issuer identifier.
-
#name ⇒ String
The name of the OAuthIdpConfig resource, for example: 'projects/my-awesome- project/oauthIdpConfigs/oauth-config-id'.
-
#response_type ⇒ Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2OAuthResponseType
The response type to request for in the OAuth authorization flow.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
constructor
A new instance of GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig
Returns a new instance of GoogleCloudIdentitytoolkitAdminV2OAuthIdpConfig.
1182 1183 1184 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1182 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_id ⇒ String
The client id of an OAuth client.
Corresponds to the JSON property clientId
1144 1145 1146 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1144 def client_id @client_id end |
#client_secret ⇒ String
The client secret of the OAuth client, to enable OIDC code flow.
Corresponds to the JSON property clientSecret
1149 1150 1151 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1149 def client_secret @client_secret end |
#display_name ⇒ String
The config's display name set by developers.
Corresponds to the JSON property displayName
1154 1155 1156 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1154 def display_name @display_name end |
#enabled ⇒ Boolean Also known as: enabled?
True if allows the user to sign in with the provider.
Corresponds to the JSON property enabled
1159 1160 1161 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1159 def enabled @enabled end |
#issuer ⇒ String
For OIDC Idps, the issuer identifier.
Corresponds to the JSON property issuer
1165 1166 1167 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1165 def issuer @issuer end |
#name ⇒ String
The name of the OAuthIdpConfig resource, for example: 'projects/my-awesome-
project/oauthIdpConfigs/oauth-config-id'. Ignored during create requests.
Corresponds to the JSON property name
1171 1172 1173 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1171 def name @name end |
#response_type ⇒ Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2OAuthResponseType
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.
Corresponds to the JSON property responseType
1180 1181 1182 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1180 def response_type @response_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1187 1188 1189 1190 1191 1192 1193 1194 1195 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1187 def update!(**args) @client_id = args[:client_id] if args.key?(:client_id) @client_secret = args[:client_secret] if args.key?(:client_secret) @display_name = args[:display_name] if args.key?(:display_name) @enabled = args[:enabled] if args.key?(:enabled) @issuer = args[:issuer] if args.key?(:issuer) @name = args[:name] if args.key?(:name) @response_type = args[:response_type] if args.key?(:response_type) end |