Class: Google::Apis::ConnectorsV1::Oauth2AuthCodeFlow

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Oauth2AuthCodeFlow

Returns a new instance of Oauth2AuthCodeFlow.



3779
3780
3781
# File 'lib/google/apis/connectors_v1/classes.rb', line 3779

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#auth_codeString

Authorization code to be exchanged for access and refresh tokens. Corresponds to the JSON property authCode

Returns:

  • (String)


3741
3742
3743
# File 'lib/google/apis/connectors_v1/classes.rb', line 3741

def auth_code
  @auth_code
end

#auth_uriString

Auth URL for Authorization Code Flow Corresponds to the JSON property authUri

Returns:

  • (String)


3746
3747
3748
# File 'lib/google/apis/connectors_v1/classes.rb', line 3746

def auth_uri
  @auth_uri
end

#client_idString

Client ID for user-provided OAuth app. Corresponds to the JSON property clientId

Returns:

  • (String)


3751
3752
3753
# File 'lib/google/apis/connectors_v1/classes.rb', line 3751

def client_id
  @client_id
end

#client_secretGoogle::Apis::ConnectorsV1::Secret

Secret provides a reference to entries in Secret Manager. Corresponds to the JSON property clientSecret



3756
3757
3758
# File 'lib/google/apis/connectors_v1/classes.rb', line 3756

def client_secret
  @client_secret
end

#enable_pkceBoolean Also known as: enable_pkce?

Whether to enable PKCE when the user performs the auth code flow. Corresponds to the JSON property enablePkce

Returns:

  • (Boolean)


3761
3762
3763
# File 'lib/google/apis/connectors_v1/classes.rb', line 3761

def enable_pkce
  @enable_pkce
end

#pkce_verifierString

PKCE verifier to be used during the auth code exchange. Corresponds to the JSON property pkceVerifier

Returns:

  • (String)


3767
3768
3769
# File 'lib/google/apis/connectors_v1/classes.rb', line 3767

def pkce_verifier
  @pkce_verifier
end

#redirect_uriString

Redirect URI to be provided during the auth code exchange. Corresponds to the JSON property redirectUri

Returns:

  • (String)


3772
3773
3774
# File 'lib/google/apis/connectors_v1/classes.rb', line 3772

def redirect_uri
  @redirect_uri
end

#scopesArray<String>

Scopes the connection will request when the user performs the auth code flow. Corresponds to the JSON property scopes

Returns:

  • (Array<String>)


3777
3778
3779
# File 'lib/google/apis/connectors_v1/classes.rb', line 3777

def scopes
  @scopes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
# File 'lib/google/apis/connectors_v1/classes.rb', line 3784

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