Class: SyncAttrWithAuth0::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/sync_attr_with_auth0/configuration.rb

Overview

SyncAttrWithAuth0 configuration class. This is used by SyncAttrWithAuth0 to provide configuration settings.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/sync_attr_with_auth0/configuration.rb', line 38

def initialize
  @auth0_global_client_id = ENV['AUTH0_GLOBAL_CLIENT_ID']
  @auth0_global_client_secret = ENV['AUTH0_GLOBAL_CLIENT_SECRET']
  @auth0_client_id = ENV['AUTH0_CLIENT_ID']
  @auth0_client_secret = ENV['AUTH0_CLIENT_SECRET']
  @auth0_namespace = ENV['AUTH0_NAMESPACE']

  @auth0_uid_attribute = :auth0_uid
  @name_attribute = :name
  @given_name_attribute = :given_name
  @family_name_attribute = :family_name
  @email_attribute = :email
  @password_attribute = :password
  @email_verified_attribute = :email_verified
  @verify_password_attribute = :verify_password
  @picture_attribute = :picture
  @connection_name = 'Username-Password-Authentication'
  @search_connections = []
end

Instance Attribute Details

#auth0_client_idObject

Returns the value of attribute auth0_client_id.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def auth0_client_id
  @auth0_client_id
end

#auth0_client_secretObject

Returns the value of attribute auth0_client_secret.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def auth0_client_secret
  @auth0_client_secret
end

#auth0_global_client_idObject

Returns the value of attribute auth0_global_client_id.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def auth0_global_client_id
  @auth0_global_client_id
end

#auth0_global_client_secretObject

Returns the value of attribute auth0_global_client_secret.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def auth0_global_client_secret
  @auth0_global_client_secret
end

#auth0_namespaceObject

Returns the value of attribute auth0_namespace.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def auth0_namespace
  @auth0_namespace
end

#auth0_uid_attributeObject

Returns the value of attribute auth0_uid_attribute.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def auth0_uid_attribute
  @auth0_uid_attribute
end

#connection_nameObject

Returns the value of attribute connection_name.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def connection_name
  @connection_name
end

#email_attributeObject

Returns the value of attribute email_attribute.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def email_attribute
  @email_attribute
end

#email_verified_attributeObject

Returns the value of attribute email_verified_attribute.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def email_verified_attribute
  @email_verified_attribute
end

#family_name_attributeObject

Returns the value of attribute family_name_attribute.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def family_name_attribute
  @family_name_attribute
end

#given_name_attributeObject

Returns the value of attribute given_name_attribute.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def given_name_attribute
  @given_name_attribute
end

#name_attributeObject

Returns the value of attribute name_attribute.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def name_attribute
  @name_attribute
end

#password_attributeObject

Returns the value of attribute password_attribute.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def password_attribute
  @password_attribute
end

#picture_attributeObject

Returns the value of attribute picture_attribute.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def picture_attribute
  @picture_attribute
end

#search_connectionsObject

Returns the value of attribute search_connections.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def search_connections
  @search_connections
end

#verify_password_attributeObject

Returns the value of attribute verify_password_attribute.



30
31
32
# File 'lib/sync_attr_with_auth0/configuration.rb', line 30

def verify_password_attribute
  @verify_password_attribute
end