Class: Privy::Models::OAuthTokenDeviceCodeRequestBody

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/oauth_token_device_code_request_body.rb

Defined Under Namespace

Modules: GrantType

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(device_code:, grant_type:) ⇒ Object

Request body for the urn:ietf:params:oauth:grant-type:device_code grant type (RFC 8628). Used by CLI clients to poll for authorization.

Parameters:



# File 'lib/privy/models/oauth_token_device_code_request_body.rb', line 17

Instance Attribute Details

#device_codeString

The device code received from the device authorization endpoint.

Returns:

  • (String)


10
# File 'lib/privy/models/oauth_token_device_code_request_body.rb', line 10

required :device_code, String

#grant_typeSymbol, Privy::Models::OAuthTokenDeviceCodeRequestBody::GrantType



15
# File 'lib/privy/models/oauth_token_device_code_request_body.rb', line 15

required :grant_type, enum: -> { Privy::OAuthTokenDeviceCodeRequestBody::GrantType }