Class: ScimRails::Config
- Inherits:
-
Object
- Object
- ScimRails::Config
- Defined in:
- lib/scim_rails/config.rb
Overview
Class containing configuration of ScimRails
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.
-
#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_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.
49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/scim_rails/config.rb', line 49 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 = {} end |
Instance Attribute Details
#basic_auth_model ⇒ Object
71 72 73 |
# File 'lib/scim_rails/config.rb', line 71 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/scim_rails/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/scim_rails/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/scim_rails/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/scim_rails/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/scim_rails/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/scim_rails/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/scim_rails/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/scim_rails/config.rb', line 25 def mutable_group_attributes @mutable_group_attributes end |
#mutable_group_attributes_schema ⇒ Object
67 68 69 |
# File 'lib/scim_rails/config.rb', line 67 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/scim_rails/config.rb', line 25 def mutable_user_attributes @mutable_user_attributes end |
#mutable_user_attributes_schema ⇒ Object
63 64 65 |
# File 'lib/scim_rails/config.rb', line 63 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/scim_rails/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/scim_rails/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/scim_rails/config.rb', line 25 def queryable_user_attributes @queryable_user_attributes end |
#scim_groups_list_order ⇒ Object
Returns the value of attribute scim_groups_list_order.
25 26 27 |
# File 'lib/scim_rails/config.rb', line 25 def scim_groups_list_order @scim_groups_list_order end |
#scim_groups_model ⇒ Object
79 80 81 |
# File 'lib/scim_rails/config.rb', line 79 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/scim_rails/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/scim_rails/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/scim_rails/config.rb', line 25 def scim_users_list_order @scim_users_list_order end |
#scim_users_model ⇒ Object
75 76 77 |
# File 'lib/scim_rails/config.rb', line 75 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/scim_rails/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/scim_rails/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/scim_rails/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/scim_rails/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/scim_rails/config.rb', line 25 def user_attributes @user_attributes end |
#user_schema ⇒ Object
Returns the value of attribute user_schema.
25 26 27 |
# File 'lib/scim_rails/config.rb', line 25 def user_schema @user_schema end |