Class: WorkOS::CreateConnectionOIDCOptions
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateConnectionOIDCOptions
- Defined in:
- lib/workos/sso/create_connection_oidc_options.rb
Constant Summary collapse
- HASH_ATTRS =
{ discovery_endpoint: :discovery_endpoint, client_id: :client_id, client_secret: :client_secret, redirect_uri: :redirect_uri, pkce: :pkce, token_authentication_method: :token_authentication_method, jwt_signing_key_pair: :jwt_signing_key_pair, id_token_signature_algorithm: :id_token_signature_algorithm, fetch_user_info: :fetch_user_info }.freeze
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#discovery_endpoint ⇒ Object
Returns the value of attribute discovery_endpoint.
-
#fetch_user_info ⇒ Object
Returns the value of attribute fetch_user_info.
-
#id_token_signature_algorithm ⇒ Object
Returns the value of attribute id_token_signature_algorithm.
-
#jwt_signing_key_pair ⇒ Object
Returns the value of attribute jwt_signing_key_pair.
-
#pkce ⇒ Object
Returns the value of attribute pkce.
-
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
-
#token_authentication_method ⇒ Object
Returns the value of attribute token_authentication_method.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateConnectionOIDCOptions
constructor
A new instance of CreateConnectionOIDCOptions.
Constructor Details
#initialize(json) ⇒ CreateConnectionOIDCOptions
Returns a new instance of CreateConnectionOIDCOptions.
30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/workos/sso/create_connection_oidc_options.rb', line 30 def initialize(json) hash = self.class.normalize(json) @discovery_endpoint = hash[:discovery_endpoint] @client_id = hash[:client_id] @client_secret = hash[:client_secret] @redirect_uri = hash[:redirect_uri] @pkce = hash[:pkce] @token_authentication_method = hash[:token_authentication_method] @jwt_signing_key_pair = hash[:jwt_signing_key_pair] ? WorkOS::CreateConnectionKeyPair.new(hash[:jwt_signing_key_pair]) : nil @id_token_signature_algorithm = hash[:id_token_signature_algorithm] @fetch_user_info = hash[:fetch_user_info] end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
19 20 21 |
# File 'lib/workos/sso/create_connection_oidc_options.rb', line 19 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
19 20 21 |
# File 'lib/workos/sso/create_connection_oidc_options.rb', line 19 def client_secret @client_secret end |
#discovery_endpoint ⇒ Object
Returns the value of attribute discovery_endpoint.
19 20 21 |
# File 'lib/workos/sso/create_connection_oidc_options.rb', line 19 def discovery_endpoint @discovery_endpoint end |
#fetch_user_info ⇒ Object
Returns the value of attribute fetch_user_info.
19 20 21 |
# File 'lib/workos/sso/create_connection_oidc_options.rb', line 19 def fetch_user_info @fetch_user_info end |
#id_token_signature_algorithm ⇒ Object
Returns the value of attribute id_token_signature_algorithm.
19 20 21 |
# File 'lib/workos/sso/create_connection_oidc_options.rb', line 19 def id_token_signature_algorithm @id_token_signature_algorithm end |
#jwt_signing_key_pair ⇒ Object
Returns the value of attribute jwt_signing_key_pair.
19 20 21 |
# File 'lib/workos/sso/create_connection_oidc_options.rb', line 19 def jwt_signing_key_pair @jwt_signing_key_pair end |
#pkce ⇒ Object
Returns the value of attribute pkce.
19 20 21 |
# File 'lib/workos/sso/create_connection_oidc_options.rb', line 19 def pkce @pkce end |
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
19 20 21 |
# File 'lib/workos/sso/create_connection_oidc_options.rb', line 19 def redirect_uri @redirect_uri end |
#token_authentication_method ⇒ Object
Returns the value of attribute token_authentication_method.
19 20 21 |
# File 'lib/workos/sso/create_connection_oidc_options.rb', line 19 def token_authentication_method @token_authentication_method end |