Class: Cerca::Models::OAuthConnectResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cerca/models/oauth_connect_response.rb

Overview

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(authorization_url:, callback_origin:, expires_at: nil, state_nonce: nil) ⇒ Object

Parameters:

  • authorization_url (String)

    Provider authorization URL that the client should open.

  • callback_origin (String)

    Origin hosting the OAuth callback endpoint.

  • expires_at (String) (defaults to: nil)

    OAuth state expiration timestamp, when returned.

  • state_nonce (String) (defaults to: nil)

    OAuth state nonce, when returned.



# File 'lib/cerca/models/oauth_connect_response.rb', line 31

Instance Attribute Details

#authorization_urlString

Provider authorization URL that the client should open.

Returns:

  • (String)


11
# File 'lib/cerca/models/oauth_connect_response.rb', line 11

required :authorization_url, String, api_name: :authorizationUrl

#callback_originString

Origin hosting the OAuth callback endpoint.

Returns:

  • (String)


17
# File 'lib/cerca/models/oauth_connect_response.rb', line 17

required :callback_origin, String, api_name: :callbackOrigin

#expires_atString?

OAuth state expiration timestamp, when returned.

Returns:

  • (String, nil)


23
# File 'lib/cerca/models/oauth_connect_response.rb', line 23

optional :expires_at, String, api_name: :expiresAt

#state_nonceString?

OAuth state nonce, when returned.

Returns:

  • (String, nil)


29
# File 'lib/cerca/models/oauth_connect_response.rb', line 29

optional :state_nonce, String, api_name: :stateNonce