Class: Scimaenaga::Config
- Inherits:
-
Object
- Object
- Scimaenaga::Config
- Defined in:
- lib/scimaenaga/config.rb
Overview
Class containing configuration of Scimaenaga
Constant Summary collapse
- ALGO_NONE =
'none'
Instance Attribute Summary collapse
- #basic_auth_model ⇒ Object
-
#basic_auth_model_authenticatable_attribute ⇒ Object
Returns the value of attribute basic_auth_model_authenticatable_attribute.
-
#basic_auth_model_searchable_attribute ⇒ Object
Returns the value of attribute basic_auth_model_searchable_attribute.
-
#group_abbreviated_schema ⇒ Object
Returns the value of attribute group_abbreviated_schema.
-
#group_destroy_method ⇒ Object
Returns the value of attribute group_destroy_method.
-
#group_member_relation_attribute ⇒ Object
Returns the value of attribute group_member_relation_attribute.
-
#group_member_relation_schema ⇒ Object
Returns the value of attribute group_member_relation_schema.
-
#group_schema ⇒ Object
Returns the value of attribute group_schema.
-
#mutable_group_attributes ⇒ Object
Returns the value of attribute mutable_group_attributes.
- #mutable_group_attributes_schema ⇒ Object
-
#mutable_user_attributes ⇒ Object
Returns the value of attribute mutable_user_attributes.
- #mutable_user_attributes_schema ⇒ Object
-
#on_error ⇒ Object
Returns the value of attribute on_error.
-
#queryable_group_attributes ⇒ Object
Returns the value of attribute queryable_group_attributes.
-
#queryable_user_attributes ⇒ Object
Returns the value of attribute queryable_user_attributes.
-
#schemas ⇒ Object
Returns the value of attribute schemas.
-
#scim_groups_list_order ⇒ Object
Returns the value of attribute scim_groups_list_order.
- #scim_groups_model ⇒ Object
-
#scim_groups_scope ⇒ Object
Returns the value of attribute scim_groups_scope.
-
#scim_user_prevent_update_on_create ⇒ Object
Returns the value of attribute scim_user_prevent_update_on_create.
-
#scim_users_list_order ⇒ Object
Returns the value of attribute scim_users_list_order.
- #scim_users_model ⇒ Object
-
#scim_users_scope ⇒ Object
Returns the value of attribute scim_users_scope.
-
#signing_algorithm ⇒ Object
Returns the value of attribute signing_algorithm.
-
#signing_secret ⇒ Object
Returns the value of attribute signing_secret.
-
#user_abbreviated_schema ⇒ Object
Returns the value of attribute user_abbreviated_schema.
-
#user_attributes ⇒ Object
Returns the value of attribute user_attributes.
-
#user_destroy_method ⇒ Object
Returns the value of attribute user_destroy_method.
-
#user_schema ⇒ Object
Returns the value of attribute user_schema.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_model ⇒ Object
74 75 76 |
# File 'lib/scimaenaga/config.rb', line 74 def basic_auth_model @basic_auth_model.constantize end |
#basic_auth_model_authenticatable_attribute ⇒ Object
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_attribute ⇒ Object
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_schema ⇒ Object
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_method ⇒ Object
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_attribute ⇒ Object
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_schema ⇒ Object
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_schema ⇒ Object
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_attributes ⇒ Object
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_schema ⇒ Object
70 71 72 |
# File 'lib/scimaenaga/config.rb', line 70 def mutable_group_attributes_schema @mutable_group_attributes_schema || @group_schema end |
#mutable_user_attributes ⇒ Object
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_schema ⇒ Object
66 67 68 |
# File 'lib/scimaenaga/config.rb', line 66 def mutable_user_attributes_schema @mutable_user_attributes_schema || @user_schema end |
#on_error ⇒ Object
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_attributes ⇒ Object
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_attributes ⇒ Object
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 |
#schemas ⇒ Object
Returns the value of attribute schemas.
25 26 27 |
# File 'lib/scimaenaga/config.rb', line 25 def schemas @schemas end |
#scim_groups_list_order ⇒ Object
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_model ⇒ Object
82 83 84 |
# File 'lib/scimaenaga/config.rb', line 82 def scim_groups_model @scim_groups_model.constantize end |
#scim_groups_scope ⇒ Object
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_create ⇒ Object
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_order ⇒ Object
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_model ⇒ Object
78 79 80 |
# File 'lib/scimaenaga/config.rb', line 78 def scim_users_model @scim_users_model.constantize end |
#scim_users_scope ⇒ Object
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_algorithm ⇒ Object
Returns the value of attribute signing_algorithm.
25 26 27 |
# File 'lib/scimaenaga/config.rb', line 25 def signing_algorithm @signing_algorithm end |
#signing_secret ⇒ Object
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_schema ⇒ Object
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_attributes ⇒ Object
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_method ⇒ Object
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_schema ⇒ Object
Returns the value of attribute user_schema.
25 26 27 |
# File 'lib/scimaenaga/config.rb', line 25 def user_schema @user_schema end |