Class: Google::Apis::IapV1::OAuthSettings
- Inherits:
-
Object
- Object
- Google::Apis::IapV1::OAuthSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/iap_v1/classes.rb,
lib/google/apis/iap_v1/representations.rb,
lib/google/apis/iap_v1/representations.rb
Overview
Configuration for OAuth login&consent flow behavior as well as for OAuth Credentials.
Instance Attribute Summary collapse
-
#client_id ⇒ String
Optional.
-
#client_secret ⇒ String
Optional.
-
#client_secret_sha256 ⇒ String
Output only.
-
#login_hint ⇒ String
Domain hint to send as hd=? parameter in OAuth request flow.
-
#programmatic_clients ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OAuthSettings
constructor
A new instance of OAuthSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OAuthSettings
Returns a new instance of OAuthSettings.
829 830 831 |
# File 'lib/google/apis/iap_v1/classes.rb', line 829 def initialize(**args) update!(**args) end |
Instance Attribute Details
#client_id ⇒ String
Optional. OAuth 2.0 client ID used in the OAuth flow. This allows for client
sharing. The risks of client sharing are outlined here: https://cloud.google.
com/iap/docs/sharing-oauth-clients#risks.
Corresponds to the JSON property clientId
803 804 805 |
# File 'lib/google/apis/iap_v1/classes.rb', line 803 def client_id @client_id end |
#client_secret ⇒ String
Optional. Input only. OAuth secret paired with client ID.
Corresponds to the JSON property clientSecret
808 809 810 |
# File 'lib/google/apis/iap_v1/classes.rb', line 808 def client_secret @client_secret end |
#client_secret_sha256 ⇒ String
Output only. OAuth secret SHA256 paired with client ID.
Corresponds to the JSON property clientSecretSha256
813 814 815 |
# File 'lib/google/apis/iap_v1/classes.rb', line 813 def client_secret_sha256 @client_secret_sha256 end |
#login_hint ⇒ String
Domain hint to send as hd=? parameter in OAuth request flow. Enables redirect
to primary IDP by skipping Google's login screen. https://developers.google.
com/identity/protocols/OpenIDConnect#hd-param Note: IAP does not verify that
the id token's hd claim matches this value since access behavior is managed by
IAM policies.
Corresponds to the JSON property loginHint
822 823 824 |
# File 'lib/google/apis/iap_v1/classes.rb', line 822 def login_hint @login_hint end |
#programmatic_clients ⇒ Array<String>
Optional. List of client ids allowed to use IAP programmatically.
Corresponds to the JSON property programmaticClients
827 828 829 |
# File 'lib/google/apis/iap_v1/classes.rb', line 827 def programmatic_clients @programmatic_clients end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
834 835 836 837 838 839 840 |
# File 'lib/google/apis/iap_v1/classes.rb', line 834 def update!(**args) @client_id = args[:client_id] if args.key?(:client_id) @client_secret = args[:client_secret] if args.key?(:client_secret) @client_secret_sha256 = args[:client_secret_sha256] if args.key?(:client_secret_sha256) @login_hint = args[:login_hint] if args.key?(:login_hint) @programmatic_clients = args[:programmatic_clients] if args.key?(:programmatic_clients) end |