Class: Clerk::Models::Components::OauthConfig

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/components/oauth_config.rb

Overview

Present when the enterprise connection uses OIDC or EASIE

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(id: nil, name: nil, provider_key: nil, requires_pkce: nil, created_at: nil, updated_at: nil, client_id: nil, discovery_url: nil, auth_url: nil, token_url: nil, user_info_url: nil, logo_public_url: nil) ⇒ OauthConfig

Returns a new instance of OauthConfig.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/clerk/models/components/oauth_config.rb', line 41

def initialize(id: nil, name: nil, provider_key: nil, requires_pkce: nil, created_at: nil, updated_at: nil, client_id: nil, discovery_url: nil, auth_url: nil, token_url: nil, user_info_url: nil, logo_public_url: nil)
  @id = id
  @name = name
  @provider_key = provider_key
  @requires_pkce = requires_pkce
  @created_at = created_at
  @updated_at = updated_at
  @client_id = client_id
  @discovery_url = discovery_url
  @auth_url = auth_url
  @token_url = token_url
  @user_info_url = 
  @logo_public_url = logo_public_url
end

Instance Method Details

#==(other) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/clerk/models/components/oauth_config.rb', line 57

def ==(other)
  return false unless other.is_a? self.class
  return false unless @id == other.id
  return false unless @name == other.name
  return false unless @provider_key == other.provider_key
  return false unless @requires_pkce == other.requires_pkce
  return false unless @created_at == other.created_at
  return false unless @updated_at == other.updated_at
  return false unless @client_id == other.client_id
  return false unless @discovery_url == other.discovery_url
  return false unless @auth_url == other.auth_url
  return false unless @token_url == other.token_url
  return false unless @user_info_url == other.
  return false unless @logo_public_url == other.logo_public_url
  true
end