Class: Google::Apis::ConnectorsV1::EndUserAuthenticationConfigOauth2AuthCodeFlow
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::EndUserAuthenticationConfigOauth2AuthCodeFlow
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/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
Optional.
-
#auth_uri ⇒ String
Optional.
-
#client_id ⇒ String
Optional.
-
#client_secret ⇒ Google::Apis::ConnectorsV1::EuaSecret
EUASecret provides a reference to entries in Secret Manager.
-
#enable_pkce ⇒ Boolean
(also: #enable_pkce?)
Optional.
-
#oauth_token_data ⇒ Google::Apis::ConnectorsV1::OAuthTokenData
pass only at create and not update using updateMask Auth Code Data Corresponds to the JSON property
oauthTokenData. -
#pkce_verifier ⇒ String
Optional.
-
#redirect_uri ⇒ String
Optional.
-
#scopes ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EndUserAuthenticationConfigOauth2AuthCodeFlow
constructor
A new instance of EndUserAuthenticationConfigOauth2AuthCodeFlow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EndUserAuthenticationConfigOauth2AuthCodeFlow
Returns a new instance of EndUserAuthenticationConfigOauth2AuthCodeFlow.
2460 2461 2462 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2460 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auth_code ⇒ String
Optional. Authorization code to be exchanged for access and refresh tokens.
Corresponds to the JSON property authCode
2416 2417 2418 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2416 def auth_code @auth_code end |
#auth_uri ⇒ String
Optional. Auth URL for Authorization Code Flow
Corresponds to the JSON property authUri
2421 2422 2423 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2421 def auth_uri @auth_uri end |
#client_id ⇒ String
Optional. Client ID for user-provided OAuth app.
Corresponds to the JSON property clientId
2426 2427 2428 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2426 def client_id @client_id end |
#client_secret ⇒ Google::Apis::ConnectorsV1::EuaSecret
EUASecret provides a reference to entries in Secret Manager.
Corresponds to the JSON property clientSecret
2431 2432 2433 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2431 def client_secret @client_secret end |
#enable_pkce ⇒ Boolean Also known as: enable_pkce?
Optional. Whether to enable PKCE when the user performs the auth code flow.
Corresponds to the JSON property enablePkce
2436 2437 2438 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2436 def enable_pkce @enable_pkce end |
#oauth_token_data ⇒ Google::Apis::ConnectorsV1::OAuthTokenData
pass only at create and not update using updateMask Auth Code Data
Corresponds to the JSON property oauthTokenData
2442 2443 2444 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2442 def oauth_token_data @oauth_token_data end |
#pkce_verifier ⇒ String
Optional. PKCE verifier to be used during the auth code exchange.
Corresponds to the JSON property pkceVerifier
2447 2448 2449 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2447 def pkce_verifier @pkce_verifier end |
#redirect_uri ⇒ String
Optional. Redirect URI to be provided during the auth code exchange.
Corresponds to the JSON property redirectUri
2452 2453 2454 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2452 def redirect_uri @redirect_uri end |
#scopes ⇒ Array<String>
Optional. Scopes the connection will request when the user performs the auth
code flow.
Corresponds to the JSON property scopes
2458 2459 2460 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2458 def scopes @scopes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2465 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) @oauth_token_data = args[:oauth_token_data] if args.key?(:oauth_token_data) @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 |