Class: Google::Apis::CesV1::LfA2aV1DeviceCodeOAuthFlow
- Inherits:
-
Object
- Object
- Google::Apis::CesV1::LfA2aV1DeviceCodeOAuthFlow
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ces_v1/classes.rb,
lib/google/apis/ces_v1/representations.rb,
lib/google/apis/ces_v1/representations.rb
Overview
Defines configuration details for the OAuth 2.0 Device Code flow (RFC 8628). This flow is designed for input-constrained devices such as IoT devices, and CLI tools where the user authenticates on a separate device.
Instance Attribute Summary collapse
-
#device_authorization_url ⇒ String
Required.
-
#refresh_url ⇒ String
The URL to be used for obtaining refresh tokens.
-
#scopes ⇒ Hash<String,String>
Required.
-
#token_url ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LfA2aV1DeviceCodeOAuthFlow
constructor
A new instance of LfA2aV1DeviceCodeOAuthFlow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LfA2aV1DeviceCodeOAuthFlow
Returns a new instance of LfA2aV1DeviceCodeOAuthFlow.
4970 4971 4972 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4970 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_authorization_url ⇒ String
Required. The device authorization endpoint URL.
Corresponds to the JSON property deviceAuthorizationUrl
4953 4954 4955 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4953 def @device_authorization_url end |
#refresh_url ⇒ String
The URL to be used for obtaining refresh tokens.
Corresponds to the JSON property refreshUrl
4958 4959 4960 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4958 def refresh_url @refresh_url end |
#scopes ⇒ Hash<String,String>
Required. The available scopes for the OAuth2 security scheme.
Corresponds to the JSON property scopes
4963 4964 4965 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4963 def scopes @scopes end |
#token_url ⇒ String
Required. The token URL to be used for this flow.
Corresponds to the JSON property tokenUrl
4968 4969 4970 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4968 def token_url @token_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4975 4976 4977 4978 4979 4980 |
# File 'lib/google/apis/ces_v1/classes.rb', line 4975 def update!(**args) @device_authorization_url = args[:device_authorization_url] if args.key?(:device_authorization_url) @refresh_url = args[:refresh_url] if args.key?(:refresh_url) @scopes = args[:scopes] if args.key?(:scopes) @token_url = args[:token_url] if args.key?(:token_url) end |