Class: WorkOS::UpdateCustomProviderDefinition

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/pipes/update_custom_provider_definition.rb

Constant Summary collapse

HASH_ATTRS =
{
  name: :name,
  authorization_url: :authorization_url,
  token_url: :token_url,
  refresh_token_url: :refresh_token_url,
  pkce_enabled: :pkce_enabled,
  request_scope_separator: :request_scope_separator,
  scopes_required: :scopes_required,
  client_secret_required: :client_secret_required,
  additional_authorization_parameters: :additional_authorization_parameters,
  token_body_content_type: :token_body_content_type,
  authenticate_via: :authenticate_via
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ UpdateCustomProviderDefinition

Returns a new instance of UpdateCustomProviderDefinition.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/workos/pipes/update_custom_provider_definition.rb', line 34

def initialize(json)
  hash = self.class.normalize(json)
  @name = hash[:name]
  @authorization_url = hash[:authorization_url]
  @token_url = hash[:token_url]
  @refresh_token_url = hash[:refresh_token_url]
  @pkce_enabled = hash[:pkce_enabled]
  @request_scope_separator = hash[:request_scope_separator]
  @scopes_required = hash[:scopes_required]
  @client_secret_required = hash[:client_secret_required]
  @additional_authorization_parameters = hash[:additional_authorization_parameters] || {}
  @token_body_content_type = hash[:token_body_content_type]
  @authenticate_via = hash[:authenticate_via]
end

Instance Attribute Details

#additional_authorization_parametersObject

Returns the value of attribute additional_authorization_parameters.



21
22
23
# File 'lib/workos/pipes/update_custom_provider_definition.rb', line 21

def additional_authorization_parameters
  @additional_authorization_parameters
end

#authenticate_viaObject

Returns the value of attribute authenticate_via.



21
22
23
# File 'lib/workos/pipes/update_custom_provider_definition.rb', line 21

def authenticate_via
  @authenticate_via
end

#authorization_urlObject

Returns the value of attribute authorization_url.



21
22
23
# File 'lib/workos/pipes/update_custom_provider_definition.rb', line 21

def authorization_url
  @authorization_url
end

#client_secret_requiredObject

Returns the value of attribute client_secret_required.



21
22
23
# File 'lib/workos/pipes/update_custom_provider_definition.rb', line 21

def client_secret_required
  @client_secret_required
end

#nameObject

Returns the value of attribute name.



21
22
23
# File 'lib/workos/pipes/update_custom_provider_definition.rb', line 21

def name
  @name
end

#pkce_enabledObject

Returns the value of attribute pkce_enabled.



21
22
23
# File 'lib/workos/pipes/update_custom_provider_definition.rb', line 21

def pkce_enabled
  @pkce_enabled
end

#refresh_token_urlObject

Returns the value of attribute refresh_token_url.



21
22
23
# File 'lib/workos/pipes/update_custom_provider_definition.rb', line 21

def refresh_token_url
  @refresh_token_url
end

#request_scope_separatorObject

Returns the value of attribute request_scope_separator.



21
22
23
# File 'lib/workos/pipes/update_custom_provider_definition.rb', line 21

def request_scope_separator
  @request_scope_separator
end

#scopes_requiredObject

Returns the value of attribute scopes_required.



21
22
23
# File 'lib/workos/pipes/update_custom_provider_definition.rb', line 21

def scopes_required
  @scopes_required
end

#token_body_content_typeObject

Returns the value of attribute token_body_content_type.



21
22
23
# File 'lib/workos/pipes/update_custom_provider_definition.rb', line 21

def token_body_content_type
  @token_body_content_type
end

#token_urlObject

Returns the value of attribute token_url.



21
22
23
# File 'lib/workos/pipes/update_custom_provider_definition.rb', line 21

def token_url
  @token_url
end