Class: Scimaenaga::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/scimaenaga/config.rb

Overview

Class containing configuration of Scimaenaga

Constant Summary collapse

ALGO_NONE =
'none'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/scimaenaga/config.rb', line 51

def initialize
  @basic_auth_model = 'Company'
  @scim_users_list_order = :id
  @scim_users_model = 'User'
  @scim_groups_list_order = :id
  @scim_groups_model = 'Group'
  @signing_algorithm = ALGO_NONE
  @user_schema = {}
  @user_attributes = []
  @user_abbreviated_schema = {}
  @group_schema = {}
  @group_abbreviated_schema = {}
  @schemas = []
end

Instance Attribute Details

#basic_auth_modelObject



74
75
76
# File 'lib/scimaenaga/config.rb', line 74

def basic_auth_model
  @basic_auth_model.constantize
end

#basic_auth_model_authenticatable_attributeObject

Returns the value of attribute basic_auth_model_authenticatable_attribute.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def basic_auth_model_authenticatable_attribute
  @basic_auth_model_authenticatable_attribute
end

#basic_auth_model_searchable_attributeObject

Returns the value of attribute basic_auth_model_searchable_attribute.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def basic_auth_model_searchable_attribute
  @basic_auth_model_searchable_attribute
end

#group_abbreviated_schemaObject

Returns the value of attribute group_abbreviated_schema.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def group_abbreviated_schema
  @group_abbreviated_schema
end

#group_destroy_methodObject

Returns the value of attribute group_destroy_method.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def group_destroy_method
  @group_destroy_method
end

#group_member_relation_attributeObject

Returns the value of attribute group_member_relation_attribute.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def group_member_relation_attribute
  @group_member_relation_attribute
end

#group_member_relation_schemaObject

Returns the value of attribute group_member_relation_schema.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def group_member_relation_schema
  @group_member_relation_schema
end

#group_schemaObject

Returns the value of attribute group_schema.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def group_schema
  @group_schema
end

#mutable_group_attributesObject

Returns the value of attribute mutable_group_attributes.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def mutable_group_attributes
  @mutable_group_attributes
end

#mutable_group_attributes_schemaObject



70
71
72
# File 'lib/scimaenaga/config.rb', line 70

def mutable_group_attributes_schema
  @mutable_group_attributes_schema || @group_schema
end

#mutable_user_attributesObject

Returns the value of attribute mutable_user_attributes.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def mutable_user_attributes
  @mutable_user_attributes
end

#mutable_user_attributes_schemaObject



66
67
68
# File 'lib/scimaenaga/config.rb', line 66

def mutable_user_attributes_schema
  @mutable_user_attributes_schema || @user_schema
end

#on_errorObject

Returns the value of attribute on_error.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def on_error
  @on_error
end

#queryable_group_attributesObject

Returns the value of attribute queryable_group_attributes.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def queryable_group_attributes
  @queryable_group_attributes
end

#queryable_user_attributesObject

Returns the value of attribute queryable_user_attributes.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def queryable_user_attributes
  @queryable_user_attributes
end

#schemasObject

Returns the value of attribute schemas.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def schemas
  @schemas
end

#scim_groups_list_orderObject

Returns the value of attribute scim_groups_list_order.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def scim_groups_list_order
  @scim_groups_list_order
end

#scim_groups_modelObject



82
83
84
# File 'lib/scimaenaga/config.rb', line 82

def scim_groups_model
  @scim_groups_model.constantize
end

#scim_groups_scopeObject

Returns the value of attribute scim_groups_scope.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def scim_groups_scope
  @scim_groups_scope
end

#scim_user_prevent_update_on_createObject

Returns the value of attribute scim_user_prevent_update_on_create.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def scim_user_prevent_update_on_create
  @scim_user_prevent_update_on_create
end

#scim_users_list_orderObject

Returns the value of attribute scim_users_list_order.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def scim_users_list_order
  @scim_users_list_order
end

#scim_users_modelObject



78
79
80
# File 'lib/scimaenaga/config.rb', line 78

def scim_users_model
  @scim_users_model.constantize
end

#scim_users_scopeObject

Returns the value of attribute scim_users_scope.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def scim_users_scope
  @scim_users_scope
end

#signing_algorithmObject

Returns the value of attribute signing_algorithm.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def signing_algorithm
  @signing_algorithm
end

#signing_secretObject

Returns the value of attribute signing_secret.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def signing_secret
  @signing_secret
end

#user_abbreviated_schemaObject

Returns the value of attribute user_abbreviated_schema.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def user_abbreviated_schema
  @user_abbreviated_schema
end

#user_attributesObject

Returns the value of attribute user_attributes.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def user_attributes
  @user_attributes
end

#user_destroy_methodObject

Returns the value of attribute user_destroy_method.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def user_destroy_method
  @user_destroy_method
end

#user_schemaObject

Returns the value of attribute user_schema.



25
26
27
# File 'lib/scimaenaga/config.rb', line 25

def user_schema
  @user_schema
end