Class: Google::Apis::ConnectorsV1::Oauth2AuthCodeFlow
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::Oauth2AuthCodeFlow
- 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
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::ConnectorsV1::Secret
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) ⇒ Oauth2AuthCodeFlow
constructor
A new instance of Oauth2AuthCodeFlow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Oauth2AuthCodeFlow
Returns a new instance of Oauth2AuthCodeFlow.
2810 2811 2812 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2810 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
2772 2773 2774 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2772 def auth_code @auth_code end |
#auth_uri ⇒ String
Auth URL for Authorization Code Flow
Corresponds to the JSON property authUri
2777 2778 2779 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2777 def auth_uri @auth_uri end |
#client_id ⇒ String
Client ID for user-provided OAuth app.
Corresponds to the JSON property clientId
2782 2783 2784 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2782 def client_id @client_id end |
#client_secret ⇒ Google::Apis::ConnectorsV1::Secret
Secret provides a reference to entries in Secret Manager.
Corresponds to the JSON property clientSecret
2787 2788 2789 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2787 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
2792 2793 2794 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2792 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
2798 2799 2800 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2798 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
2803 2804 2805 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2803 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
2808 2809 2810 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2808 def scopes @scopes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 2815 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 |