Class: WorkOS::PatchConnectionOIDCOptions

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/sso/patch_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,
  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) ⇒ PatchConnectionOIDCOptions

Returns a new instance of PatchConnectionOIDCOptions.



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/workos/sso/patch_connection_oidc_options.rb', line 28

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]
  @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.



18
19
20
# File 'lib/workos/sso/patch_connection_oidc_options.rb', line 18

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



18
19
20
# File 'lib/workos/sso/patch_connection_oidc_options.rb', line 18

def client_secret
  @client_secret
end

#discovery_endpointObject

Returns the value of attribute discovery_endpoint.



18
19
20
# File 'lib/workos/sso/patch_connection_oidc_options.rb', line 18

def discovery_endpoint
  @discovery_endpoint
end

#fetch_user_infoObject

Returns the value of attribute fetch_user_info.



18
19
20
# File 'lib/workos/sso/patch_connection_oidc_options.rb', line 18

def 
  @fetch_user_info
end

#id_token_signature_algorithmObject

Returns the value of attribute id_token_signature_algorithm.



18
19
20
# File 'lib/workos/sso/patch_connection_oidc_options.rb', line 18

def id_token_signature_algorithm
  @id_token_signature_algorithm
end

#pkceObject

Returns the value of attribute pkce.



18
19
20
# File 'lib/workos/sso/patch_connection_oidc_options.rb', line 18

def pkce
  @pkce
end

#redirect_uriObject

Returns the value of attribute redirect_uri.



18
19
20
# File 'lib/workos/sso/patch_connection_oidc_options.rb', line 18

def redirect_uri
  @redirect_uri
end

#token_authentication_methodObject

Returns the value of attribute token_authentication_method.



18
19
20
# File 'lib/workos/sso/patch_connection_oidc_options.rb', line 18

def token_authentication_method
  @token_authentication_method
end