Class: WorkOS::CustomProviderDefinition
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CustomProviderDefinition
- Defined in:
- lib/workos/pipes/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
-
#additional_authorization_parameters ⇒ Object
Returns the value of attribute additional_authorization_parameters.
-
#authenticate_via ⇒ Object
Returns the value of attribute authenticate_via.
-
#authorization_url ⇒ Object
Returns the value of attribute authorization_url.
-
#client_secret_required ⇒ Object
Returns the value of attribute client_secret_required.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pkce_enabled ⇒ Object
Returns the value of attribute pkce_enabled.
-
#refresh_token_url ⇒ Object
Returns the value of attribute refresh_token_url.
-
#request_scope_separator ⇒ Object
Returns the value of attribute request_scope_separator.
-
#scopes_required ⇒ Object
Returns the value of attribute scopes_required.
-
#token_body_content_type ⇒ Object
Returns the value of attribute token_body_content_type.
-
#token_url ⇒ Object
Returns the value of attribute token_url.
Instance Method Summary collapse
-
#initialize(json) ⇒ CustomProviderDefinition
constructor
A new instance of CustomProviderDefinition.
Constructor Details
#initialize(json) ⇒ CustomProviderDefinition
Returns a new instance of CustomProviderDefinition.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/workos/pipes/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_parameters ⇒ Object
Returns the value of attribute additional_authorization_parameters.
21 22 23 |
# File 'lib/workos/pipes/custom_provider_definition.rb', line 21 def @additional_authorization_parameters end |
#authenticate_via ⇒ Object
Returns the value of attribute authenticate_via.
21 22 23 |
# File 'lib/workos/pipes/custom_provider_definition.rb', line 21 def authenticate_via @authenticate_via end |
#authorization_url ⇒ Object
Returns the value of attribute authorization_url.
21 22 23 |
# File 'lib/workos/pipes/custom_provider_definition.rb', line 21 def @authorization_url end |
#client_secret_required ⇒ Object
Returns the value of attribute client_secret_required.
21 22 23 |
# File 'lib/workos/pipes/custom_provider_definition.rb', line 21 def client_secret_required @client_secret_required end |
#name ⇒ Object
Returns the value of attribute name.
21 22 23 |
# File 'lib/workos/pipes/custom_provider_definition.rb', line 21 def name @name end |
#pkce_enabled ⇒ Object
Returns the value of attribute pkce_enabled.
21 22 23 |
# File 'lib/workos/pipes/custom_provider_definition.rb', line 21 def pkce_enabled @pkce_enabled end |
#refresh_token_url ⇒ Object
Returns the value of attribute refresh_token_url.
21 22 23 |
# File 'lib/workos/pipes/custom_provider_definition.rb', line 21 def refresh_token_url @refresh_token_url end |
#request_scope_separator ⇒ Object
Returns the value of attribute request_scope_separator.
21 22 23 |
# File 'lib/workos/pipes/custom_provider_definition.rb', line 21 def request_scope_separator @request_scope_separator end |
#scopes_required ⇒ Object
Returns the value of attribute scopes_required.
21 22 23 |
# File 'lib/workos/pipes/custom_provider_definition.rb', line 21 def scopes_required @scopes_required end |
#token_body_content_type ⇒ Object
Returns the value of attribute token_body_content_type.
21 22 23 |
# File 'lib/workos/pipes/custom_provider_definition.rb', line 21 def token_body_content_type @token_body_content_type end |
#token_url ⇒ Object
Returns the value of attribute token_url.
21 22 23 |
# File 'lib/workos/pipes/custom_provider_definition.rb', line 21 def token_url @token_url end |