Class: Google::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/representations.rb
Overview
Parameters to support Oauth 2.0 Auth Code Grant Authentication. See https:// www.rfc-editor.org/rfc/rfc6749#section-1.3.1 for more details.
Instance Attribute Summary collapse
-
#auth_code ⇒ String
Authorization code to be exchanged for access and refresh tokens.
-
#auth_uri ⇒ String
Auth URL for Authorization Code Flow Corresponds to the JSON property
authUri. -
#client_id ⇒ String
Client ID for user-provided OAuth app.
-
#client_secret ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1Secret
Secret provides a reference to entries in Secret Manager.
-
#enable_pkce ⇒ Boolean
(also: #enable_pkce?)
Whether to enable PKCE when the user performs the auth code flow.
-
#pkce_verifier ⇒ String
PKCE verifier to be used during the auth code exchange.
-
#redirect_uri ⇒ String
Redirect URI to be provided during the auth code exchange.
-
#scopes ⇒ Array<String>
Scopes the connection will request when the user performs the auth code flow.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow
constructor
A new instance of GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow
Returns a new instance of GoogleCloudConnectorsV1AuthConfigOauth2AuthCodeFlow.
4971 4972 4973 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4971 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auth_code ⇒ String
Authorization code to be exchanged for access and refresh tokens.
Corresponds to the JSON property authCode
4933 4934 4935 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4933 def auth_code @auth_code end |
#auth_uri ⇒ String
Auth URL for Authorization Code Flow
Corresponds to the JSON property authUri
4938 4939 4940 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4938 def auth_uri @auth_uri end |
#client_id ⇒ String
Client ID for user-provided OAuth app.
Corresponds to the JSON property clientId
4943 4944 4945 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4943 def client_id @client_id end |
#client_secret ⇒ Google::Apis::IntegrationsV1alpha::GoogleCloudConnectorsV1Secret
Secret provides a reference to entries in Secret Manager.
Corresponds to the JSON property clientSecret
4948 4949 4950 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4948 def client_secret @client_secret end |
#enable_pkce ⇒ Boolean Also known as: enable_pkce?
Whether to enable PKCE when the user performs the auth code flow.
Corresponds to the JSON property enablePkce
4953 4954 4955 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4953 def enable_pkce @enable_pkce end |
#pkce_verifier ⇒ String
PKCE verifier to be used during the auth code exchange.
Corresponds to the JSON property pkceVerifier
4959 4960 4961 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4959 def pkce_verifier @pkce_verifier end |
#redirect_uri ⇒ String
Redirect URI to be provided during the auth code exchange.
Corresponds to the JSON property redirectUri
4964 4965 4966 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4964 def redirect_uri @redirect_uri end |
#scopes ⇒ Array<String>
Scopes the connection will request when the user performs the auth code flow.
Corresponds to the JSON property scopes
4969 4970 4971 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4969 def scopes @scopes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 4976 def update!(**args) @auth_code = args[:auth_code] if args.key?(:auth_code) @auth_uri = args[:auth_uri] if args.key?(:auth_uri) @client_id = args[:client_id] if args.key?(:client_id) @client_secret = args[:client_secret] if args.key?(:client_secret) @enable_pkce = args[:enable_pkce] if args.key?(:enable_pkce) @pkce_verifier = args[:pkce_verifier] if args.key?(:pkce_verifier) @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri) @scopes = args[:scopes] if args.key?(:scopes) end |