Class: WorkOS::CreateConnectionOIDCOptions

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_idObject

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_secretObject

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_endpointObject

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_infoObject

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
end

#id_token_signature_algorithmObject

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_pairObject

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

#pkceObject

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_uriObject

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_methodObject

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