scim_engine 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +25 -0
- data/app/controllers/scim_engine/application_controller.rb +36 -0
- data/app/controllers/scim_engine/resource_types_controller.rb +22 -0
- data/app/controllers/scim_engine/resources_controller.rb +71 -0
- data/app/controllers/scim_engine/schemas_controller.rb +16 -0
- data/app/controllers/scim_engine/service_provider_configurations_controller.rb +8 -0
- data/app/models/scim_engine/authentication_error.rb +9 -0
- data/app/models/scim_engine/authentication_scheme.rb +12 -0
- data/app/models/scim_engine/bulk.rb +5 -0
- data/app/models/scim_engine/complex_types/base.rb +19 -0
- data/app/models/scim_engine/complex_types/email.rb +11 -0
- data/app/models/scim_engine/complex_types/name.rb +7 -0
- data/app/models/scim_engine/complex_types/reference.rb +7 -0
- data/app/models/scim_engine/error_response.rb +13 -0
- data/app/models/scim_engine/errors.rb +14 -0
- data/app/models/scim_engine/filter.rb +5 -0
- data/app/models/scim_engine/meta.rb +7 -0
- data/app/models/scim_engine/not_found_error.rb +10 -0
- data/app/models/scim_engine/resource_invalid_error.rb +9 -0
- data/app/models/scim_engine/resource_type.rb +28 -0
- data/app/models/scim_engine/resources/base.rb +110 -0
- data/app/models/scim_engine/resources/group.rb +13 -0
- data/app/models/scim_engine/resources/user.rb +13 -0
- data/app/models/scim_engine/schema/attribute.rb +82 -0
- data/app/models/scim_engine/schema/base.rb +30 -0
- data/app/models/scim_engine/schema/derived_attributes.rb +24 -0
- data/app/models/scim_engine/schema/email.rb +13 -0
- data/app/models/scim_engine/schema/group.rb +25 -0
- data/app/models/scim_engine/schema/name.rb +15 -0
- data/app/models/scim_engine/schema/reference.rb +12 -0
- data/app/models/scim_engine/schema/user.rb +28 -0
- data/app/models/scim_engine/service_provider_configuration.rb +30 -0
- data/app/models/scim_engine/supportable.rb +10 -0
- data/app/views/layouts/scim_engine/application.html.erb +14 -0
- data/config/routes.rb +6 -0
- data/lib/scim_engine/engine.rb +35 -0
- data/lib/scim_engine/version.rb +3 -0
- data/lib/scim_engine.rb +13 -0
- data/lib/tasks/scim_engine_tasks.rake +4 -0
- data/spec/controllers/scim_engine/application_controller_spec.rb +104 -0
- data/spec/controllers/scim_engine/resource_types_controller_spec.rb +78 -0
- data/spec/controllers/scim_engine/resources_controller_spec.rb +134 -0
- data/spec/controllers/scim_engine/schemas_controller_spec.rb +66 -0
- data/spec/controllers/scim_engine/service_provider_configurations_controller_spec.rb +21 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +29 -0
- data/spec/dummy/config/application.rb +16 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +41 -0
- data/spec/dummy/config/environments/production.rb +79 -0
- data/spec/dummy/config/environments/test.rb +42 -0
- data/spec/dummy/config/initializers/assets.rb +11 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/to_time_preserves_timezone.rb +10 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/log/test.log +863 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/models/scim_engine/complex_types/email_spec.rb +23 -0
- data/spec/models/scim_engine/resource_type_spec.rb +21 -0
- data/spec/models/scim_engine/resources/base_spec.rb +246 -0
- data/spec/models/scim_engine/resources/base_validation_spec.rb +61 -0
- data/spec/models/scim_engine/resources/user_spec.rb +55 -0
- data/spec/models/scim_engine/schema/attribute_spec.rb +80 -0
- data/spec/models/scim_engine/schema/base_spec.rb +19 -0
- data/spec/models/scim_engine/schema/group_spec.rb +66 -0
- data/spec/models/scim_engine/schema/user_spec.rb +140 -0
- data/spec/rails_helper.rb +57 -0
- data/spec/spec_helper.rb +99 -0
- metadata +246 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe ScimEngine::Schema::Base do
|
4
|
+
describe '#as_json' do
|
5
|
+
it 'converts the scim_attributes to attributes' do
|
6
|
+
attribute = ScimEngine::Schema::Attribute.new(name: 'nickName')
|
7
|
+
schema = described_class.new(scim_attributes: [attribute])
|
8
|
+
expect(schema.as_json['attributes']).to eql([attribute.as_json])
|
9
|
+
expect(schema.as_json['scim_attributes']).to be_nil
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe '#initialize' do
|
14
|
+
it 'creates a meta' do
|
15
|
+
schema = described_class.new
|
16
|
+
expect(schema.meta.resourceType).to eql('Schema')
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe ScimEngine::Schema::Group do
|
4
|
+
it 'returns Group schema as JSON' do
|
5
|
+
expected_json = <<-EOJ
|
6
|
+
{
|
7
|
+
"name": "Group",
|
8
|
+
"id": "urn:ietf:params:scim:schemas:core:2.0:Group",
|
9
|
+
"description": "Represents a Group",
|
10
|
+
"meta": {
|
11
|
+
"resourceType": "Schema",
|
12
|
+
"location": "/scim_engine/Schemas?name=urn%3Aietf%3Aparams%3Ascim%3Aschemas%3Acore%3A2.0%3AGroup"
|
13
|
+
},
|
14
|
+
"attributes": [
|
15
|
+
{
|
16
|
+
"multiValued": false,
|
17
|
+
"required": true,
|
18
|
+
"caseExact": false,
|
19
|
+
"mutability": "readWrite",
|
20
|
+
"uniqueness": "none",
|
21
|
+
"returned": "default",
|
22
|
+
"name": "displayName",
|
23
|
+
"type": "string"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"multiValued": true,
|
27
|
+
"required": false,
|
28
|
+
"caseExact": false,
|
29
|
+
"mutability": "readOnly",
|
30
|
+
"uniqueness": "none",
|
31
|
+
"returned": "default",
|
32
|
+
"name": "members",
|
33
|
+
"type": "complex",
|
34
|
+
"subAttributes": [
|
35
|
+
{
|
36
|
+
"multiValued": false,
|
37
|
+
"required": true,
|
38
|
+
"caseExact": false,
|
39
|
+
"mutability": "readOnly",
|
40
|
+
"uniqueness": "none",
|
41
|
+
"returned": "default",
|
42
|
+
"name": "value",
|
43
|
+
"type": "string"
|
44
|
+
},
|
45
|
+
{
|
46
|
+
"multiValued": false,
|
47
|
+
"required": false,
|
48
|
+
"caseExact": false,
|
49
|
+
"mutability": "readOnly",
|
50
|
+
"uniqueness": "none",
|
51
|
+
"returned": "default",
|
52
|
+
"name": "display",
|
53
|
+
"type": "string"
|
54
|
+
}
|
55
|
+
]
|
56
|
+
}
|
57
|
+
]
|
58
|
+
}
|
59
|
+
EOJ
|
60
|
+
|
61
|
+
group_schema = ScimEngine::Schema::Group.new
|
62
|
+
|
63
|
+
expect(JSON.parse(expected_json)).to eql(JSON.parse(group_schema.to_json))
|
64
|
+
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,140 @@
|
|
1
|
+
require 'rails_helper'
|
2
|
+
|
3
|
+
describe ScimEngine::Schema::User do
|
4
|
+
it 'returns User schema as JSON' do
|
5
|
+
expected_json = <<-EOJ
|
6
|
+
[
|
7
|
+
{
|
8
|
+
"multiValued": false,
|
9
|
+
"required": true,
|
10
|
+
"caseExact": false,
|
11
|
+
"mutability": "readWrite",
|
12
|
+
"uniqueness": "server",
|
13
|
+
"returned": "default",
|
14
|
+
"name": "userName",
|
15
|
+
"type": "string"
|
16
|
+
},
|
17
|
+
{
|
18
|
+
"multiValued": false,
|
19
|
+
"required": true,
|
20
|
+
"caseExact": false,
|
21
|
+
"mutability": "readWrite",
|
22
|
+
"uniqueness": "none",
|
23
|
+
"returned": "default",
|
24
|
+
"name": "name",
|
25
|
+
"type": "complex",
|
26
|
+
"subAttributes": [
|
27
|
+
{
|
28
|
+
"multiValued": false,
|
29
|
+
"required": true,
|
30
|
+
"caseExact": false,
|
31
|
+
"mutability": "readWrite",
|
32
|
+
"uniqueness": "none",
|
33
|
+
"returned": "default",
|
34
|
+
"name": "familyName",
|
35
|
+
"type": "string"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"multiValued": false,
|
39
|
+
"required": true,
|
40
|
+
"caseExact": false,
|
41
|
+
"mutability": "readWrite",
|
42
|
+
"uniqueness": "none",
|
43
|
+
"returned": "default",
|
44
|
+
"name": "givenName",
|
45
|
+
"type": "string"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"multiValued": false,
|
49
|
+
"required": false,
|
50
|
+
"caseExact": false,
|
51
|
+
"mutability": "readWrite",
|
52
|
+
"uniqueness": "none",
|
53
|
+
"returned": "default",
|
54
|
+
"name": "formatted",
|
55
|
+
"type": "string"
|
56
|
+
}
|
57
|
+
]
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"multiValued": true,
|
61
|
+
"required": true,
|
62
|
+
"caseExact": false,
|
63
|
+
"mutability": "readWrite",
|
64
|
+
"uniqueness": "none",
|
65
|
+
"returned": "default",
|
66
|
+
"name": "emails",
|
67
|
+
"type": "complex",
|
68
|
+
"subAttributes": [
|
69
|
+
{
|
70
|
+
"multiValued": false,
|
71
|
+
"required": true,
|
72
|
+
"caseExact": false,
|
73
|
+
"mutability": "readWrite",
|
74
|
+
"uniqueness": "none",
|
75
|
+
"returned": "default",
|
76
|
+
"name": "value",
|
77
|
+
"type": "string"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"multiValued": false,
|
81
|
+
"required": false,
|
82
|
+
"caseExact": false,
|
83
|
+
"mutability": "readWrite",
|
84
|
+
"uniqueness": "none",
|
85
|
+
"returned": "default",
|
86
|
+
"name": "primary",
|
87
|
+
"type": "boolean"
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"multiValued": false,
|
91
|
+
"required": false,
|
92
|
+
"caseExact": false,
|
93
|
+
"mutability": "readWrite",
|
94
|
+
"uniqueness": "none",
|
95
|
+
"returned": "default",
|
96
|
+
"name": "type",
|
97
|
+
"type": "string"
|
98
|
+
}
|
99
|
+
]
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"multiValued": true,
|
103
|
+
"required": true,
|
104
|
+
"caseExact": false,
|
105
|
+
"mutability": "immutable",
|
106
|
+
"uniqueness": "none",
|
107
|
+
"returned": "default",
|
108
|
+
"name": "groups",
|
109
|
+
"type": "complex",
|
110
|
+
"subAttributes": [
|
111
|
+
{
|
112
|
+
"multiValued": false,
|
113
|
+
"required": true,
|
114
|
+
"caseExact": false,
|
115
|
+
"mutability": "readOnly",
|
116
|
+
"uniqueness": "none",
|
117
|
+
"returned": "default",
|
118
|
+
"name": "value",
|
119
|
+
"type": "string"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"multiValued": false,
|
123
|
+
"required": false,
|
124
|
+
"caseExact": false,
|
125
|
+
"mutability": "readOnly",
|
126
|
+
"uniqueness": "none",
|
127
|
+
"returned": "default",
|
128
|
+
"name": "display",
|
129
|
+
"type": "string"
|
130
|
+
}
|
131
|
+
]
|
132
|
+
}
|
133
|
+
]
|
134
|
+
EOJ
|
135
|
+
|
136
|
+
expect(JSON.parse(expected_json)).to eql(JSON.parse(ScimEngine::Schema::User.scim_attributes.to_json))
|
137
|
+
|
138
|
+
end
|
139
|
+
|
140
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
2
|
+
require 'spec_helper'
|
3
|
+
ENV['RAILS_ENV'] ||= 'test'
|
4
|
+
require File.expand_path('../dummy/config/environment', __FILE__)
|
5
|
+
# Prevent database truncation if the environment is production
|
6
|
+
abort("The Rails environment is running in production mode!") if Rails.env.production?
|
7
|
+
require 'rspec/rails'
|
8
|
+
require 'byebug'
|
9
|
+
# Add additional requires below this line. Rails is not loaded until this point!
|
10
|
+
|
11
|
+
# Requires supporting ruby files with custom matchers and macros, etc, in
|
12
|
+
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are
|
13
|
+
# run as spec files by default. This means that files in spec/support that end
|
14
|
+
# in _spec.rb will both be required and run as specs, causing the specs to be
|
15
|
+
# run twice. It is recommended that you do not name files matching this glob to
|
16
|
+
# end with _spec.rb. You can configure this pattern with the --pattern
|
17
|
+
# option on the command line or in ~/.rspec, .rspec or `.rspec-local`.
|
18
|
+
#
|
19
|
+
# The following line is provided for convenience purposes. It has the downside
|
20
|
+
# of increasing the boot-up time by auto-requiring all files in the support
|
21
|
+
# directory. Alternatively, in the individual `*_spec.rb` files, manually
|
22
|
+
# require only the support files necessary.
|
23
|
+
#
|
24
|
+
# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
|
25
|
+
|
26
|
+
# Checks for pending migrations and applies them before tests are run.
|
27
|
+
# If you are not using ActiveRecord, you can remove this line.
|
28
|
+
|
29
|
+
RSpec.configure do |config|
|
30
|
+
# Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
|
31
|
+
config.fixture_path = "#{::Rails.root}/spec/fixtures"
|
32
|
+
|
33
|
+
# If you're not using ActiveRecord, or you'd prefer not to run each of your
|
34
|
+
# examples within a transaction, remove the following line or assign false
|
35
|
+
# instead of true.
|
36
|
+
config.use_transactional_fixtures = true
|
37
|
+
|
38
|
+
# RSpec Rails can automatically mix in different behaviours to your tests
|
39
|
+
# based on their file location, for example enabling you to call `get` and
|
40
|
+
# `post` in specs under `spec/controllers`.
|
41
|
+
#
|
42
|
+
# You can disable this behaviour by removing the line below, and instead
|
43
|
+
# explicitly tag your specs with their type, e.g.:
|
44
|
+
#
|
45
|
+
# RSpec.describe UsersController, :type => :controller do
|
46
|
+
# # ...
|
47
|
+
# end
|
48
|
+
#
|
49
|
+
# The different available types are documented in the features, such as in
|
50
|
+
# https://relishapp.com/rspec/rspec-rails/docs
|
51
|
+
config.infer_spec_type_from_file_location!
|
52
|
+
|
53
|
+
# Filter lines from Rails gems in backtraces.
|
54
|
+
config.filter_rails_from_backtrace!
|
55
|
+
# arbitrary gems may also be filtered via:
|
56
|
+
# config.filter_gems_from_backtrace("gem name")
|
57
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
require 'factory_bot_rails'
|
2
|
+
|
3
|
+
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
|
4
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
5
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause
|
6
|
+
# this file to always be loaded, without a need to explicitly require it in any
|
7
|
+
# files.
|
8
|
+
#
|
9
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
10
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
11
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
12
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
13
|
+
# a separate helper file that requires the additional dependencies and performs
|
14
|
+
# the additional setup, and require it from the spec files that actually need
|
15
|
+
# it.
|
16
|
+
#
|
17
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
18
|
+
RSpec.configure do |config|
|
19
|
+
# rspec-expectations config goes here. You can use an alternate
|
20
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
21
|
+
# assertions if you prefer.
|
22
|
+
config.expect_with :rspec do |expectations|
|
23
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
24
|
+
# and `failure_message` of custom matchers include text for helper methods
|
25
|
+
# defined using `chain`, e.g.:
|
26
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
27
|
+
# # => "be bigger than 2 and smaller than 4"
|
28
|
+
# ...rather than:
|
29
|
+
# # => "be bigger than 2"
|
30
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
31
|
+
end
|
32
|
+
|
33
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
34
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
35
|
+
config.mock_with :rspec do |mocks|
|
36
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
37
|
+
# a real object. This is generally recommended, and will default to
|
38
|
+
# `true` in RSpec 4.
|
39
|
+
mocks.verify_partial_doubles = true
|
40
|
+
end
|
41
|
+
|
42
|
+
# This option will default to `:apply_to_host_groups` in RSpec 4 (and will
|
43
|
+
# have no way to turn it off -- the option exists only for backwards
|
44
|
+
# compatibility in RSpec 3). It causes shared context metadata to be
|
45
|
+
# inherited by the metadata hash of host groups and examples, rather than
|
46
|
+
# triggering implicit auto-inclusion in groups with matching metadata.
|
47
|
+
config.shared_context_metadata_behavior = :apply_to_host_groups
|
48
|
+
|
49
|
+
# The settings below are suggested to provide a good initial experience
|
50
|
+
# with RSpec, but feel free to customize to your heart's content.
|
51
|
+
=begin
|
52
|
+
# This allows you to limit a spec run to individual examples or groups
|
53
|
+
# you care about by tagging them with `:focus` metadata. When nothing
|
54
|
+
# is tagged with `:focus`, all examples get run. RSpec also provides
|
55
|
+
# aliases for `it`, `describe`, and `context` that include `:focus`
|
56
|
+
# metadata: `fit`, `fdescribe` and `fcontext`, respectively.
|
57
|
+
config.filter_run_when_matching :focus
|
58
|
+
|
59
|
+
# Allows RSpec to persist some state between runs in order to support
|
60
|
+
# the `--only-failures` and `--next-failure` CLI options. We recommend
|
61
|
+
# you configure your source control system to ignore this file.
|
62
|
+
config.example_status_persistence_file_path = "spec/examples.txt"
|
63
|
+
|
64
|
+
# Limits the available syntax to the non-monkey patched syntax that is
|
65
|
+
# recommended. For more details, see:
|
66
|
+
# - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
|
67
|
+
# - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
68
|
+
# - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
|
69
|
+
config.disable_monkey_patching!
|
70
|
+
|
71
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
72
|
+
# file, and it's useful to allow more verbose output when running an
|
73
|
+
# individual spec file.
|
74
|
+
if config.files_to_run.one?
|
75
|
+
# Use the documentation formatter for detailed output,
|
76
|
+
# unless a formatter has already been configured
|
77
|
+
# (e.g. via a command-line flag).
|
78
|
+
config.default_formatter = "doc"
|
79
|
+
end
|
80
|
+
|
81
|
+
# Print the 10 slowest examples and example groups at the
|
82
|
+
# end of the spec run, to help surface which specs are running
|
83
|
+
# particularly slow.
|
84
|
+
config.profile_examples = 10
|
85
|
+
|
86
|
+
# Run specs in random order to surface order dependencies. If you find an
|
87
|
+
# order dependency and want to debug it, you can fix the order by providing
|
88
|
+
# the seed, which is printed after each run.
|
89
|
+
# --seed 1234
|
90
|
+
config.order = :random
|
91
|
+
|
92
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
93
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
94
|
+
# test failures related to randomization by passing the same `--seed` value
|
95
|
+
# as the one that triggered the failure.
|
96
|
+
Kernel.srand config.seed
|
97
|
+
=end
|
98
|
+
config.include FactoryBot::Syntax::Methods
|
99
|
+
end
|
metadata
ADDED
@@ -0,0 +1,246 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: scim_engine
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- ''
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-04-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 5.0.7.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 5.0.7.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.8.2
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.8.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: factory_bot_rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 4.11.1
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 4.11.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: byebug
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 10.0.2
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 10.0.2
|
69
|
+
description: |-
|
70
|
+
There's no general purpose SCIM SDK for Ruby on Rails. As a result, anyone implementing SCIM will need to take care of the SCIM schema and
|
71
|
+
protocol, which may take a significant overhead compared the implementation of the actual APIs. This project aims to extract SCIM specifics as a rails engine that can be plugged into a Ruby on Rails project.
|
72
|
+
email:
|
73
|
+
- ''
|
74
|
+
executables: []
|
75
|
+
extensions: []
|
76
|
+
extra_rdoc_files: []
|
77
|
+
files:
|
78
|
+
- MIT-LICENSE
|
79
|
+
- Rakefile
|
80
|
+
- app/controllers/scim_engine/application_controller.rb
|
81
|
+
- app/controllers/scim_engine/resource_types_controller.rb
|
82
|
+
- app/controllers/scim_engine/resources_controller.rb
|
83
|
+
- app/controllers/scim_engine/schemas_controller.rb
|
84
|
+
- app/controllers/scim_engine/service_provider_configurations_controller.rb
|
85
|
+
- app/models/scim_engine/authentication_error.rb
|
86
|
+
- app/models/scim_engine/authentication_scheme.rb
|
87
|
+
- app/models/scim_engine/bulk.rb
|
88
|
+
- app/models/scim_engine/complex_types/base.rb
|
89
|
+
- app/models/scim_engine/complex_types/email.rb
|
90
|
+
- app/models/scim_engine/complex_types/name.rb
|
91
|
+
- app/models/scim_engine/complex_types/reference.rb
|
92
|
+
- app/models/scim_engine/error_response.rb
|
93
|
+
- app/models/scim_engine/errors.rb
|
94
|
+
- app/models/scim_engine/filter.rb
|
95
|
+
- app/models/scim_engine/meta.rb
|
96
|
+
- app/models/scim_engine/not_found_error.rb
|
97
|
+
- app/models/scim_engine/resource_invalid_error.rb
|
98
|
+
- app/models/scim_engine/resource_type.rb
|
99
|
+
- app/models/scim_engine/resources/base.rb
|
100
|
+
- app/models/scim_engine/resources/group.rb
|
101
|
+
- app/models/scim_engine/resources/user.rb
|
102
|
+
- app/models/scim_engine/schema/attribute.rb
|
103
|
+
- app/models/scim_engine/schema/base.rb
|
104
|
+
- app/models/scim_engine/schema/derived_attributes.rb
|
105
|
+
- app/models/scim_engine/schema/email.rb
|
106
|
+
- app/models/scim_engine/schema/group.rb
|
107
|
+
- app/models/scim_engine/schema/name.rb
|
108
|
+
- app/models/scim_engine/schema/reference.rb
|
109
|
+
- app/models/scim_engine/schema/user.rb
|
110
|
+
- app/models/scim_engine/service_provider_configuration.rb
|
111
|
+
- app/models/scim_engine/supportable.rb
|
112
|
+
- app/views/layouts/scim_engine/application.html.erb
|
113
|
+
- config/routes.rb
|
114
|
+
- lib/scim_engine.rb
|
115
|
+
- lib/scim_engine/engine.rb
|
116
|
+
- lib/scim_engine/version.rb
|
117
|
+
- lib/tasks/scim_engine_tasks.rake
|
118
|
+
- spec/controllers/scim_engine/application_controller_spec.rb
|
119
|
+
- spec/controllers/scim_engine/resource_types_controller_spec.rb
|
120
|
+
- spec/controllers/scim_engine/resources_controller_spec.rb
|
121
|
+
- spec/controllers/scim_engine/schemas_controller_spec.rb
|
122
|
+
- spec/controllers/scim_engine/service_provider_configurations_controller_spec.rb
|
123
|
+
- spec/dummy/README.rdoc
|
124
|
+
- spec/dummy/Rakefile
|
125
|
+
- spec/dummy/app/assets/javascripts/application.js
|
126
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
127
|
+
- spec/dummy/app/controllers/application_controller.rb
|
128
|
+
- spec/dummy/app/helpers/application_helper.rb
|
129
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
130
|
+
- spec/dummy/bin/bundle
|
131
|
+
- spec/dummy/bin/rails
|
132
|
+
- spec/dummy/bin/rake
|
133
|
+
- spec/dummy/bin/setup
|
134
|
+
- spec/dummy/config.ru
|
135
|
+
- spec/dummy/config/application.rb
|
136
|
+
- spec/dummy/config/boot.rb
|
137
|
+
- spec/dummy/config/environment.rb
|
138
|
+
- spec/dummy/config/environments/development.rb
|
139
|
+
- spec/dummy/config/environments/production.rb
|
140
|
+
- spec/dummy/config/environments/test.rb
|
141
|
+
- spec/dummy/config/initializers/assets.rb
|
142
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
143
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
144
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
145
|
+
- spec/dummy/config/initializers/inflections.rb
|
146
|
+
- spec/dummy/config/initializers/mime_types.rb
|
147
|
+
- spec/dummy/config/initializers/session_store.rb
|
148
|
+
- spec/dummy/config/initializers/to_time_preserves_timezone.rb
|
149
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
150
|
+
- spec/dummy/config/locales/en.yml
|
151
|
+
- spec/dummy/config/routes.rb
|
152
|
+
- spec/dummy/config/secrets.yml
|
153
|
+
- spec/dummy/log/test.log
|
154
|
+
- spec/dummy/public/404.html
|
155
|
+
- spec/dummy/public/422.html
|
156
|
+
- spec/dummy/public/500.html
|
157
|
+
- spec/dummy/public/favicon.ico
|
158
|
+
- spec/models/scim_engine/complex_types/email_spec.rb
|
159
|
+
- spec/models/scim_engine/resource_type_spec.rb
|
160
|
+
- spec/models/scim_engine/resources/base_spec.rb
|
161
|
+
- spec/models/scim_engine/resources/base_validation_spec.rb
|
162
|
+
- spec/models/scim_engine/resources/user_spec.rb
|
163
|
+
- spec/models/scim_engine/schema/attribute_spec.rb
|
164
|
+
- spec/models/scim_engine/schema/base_spec.rb
|
165
|
+
- spec/models/scim_engine/schema/group_spec.rb
|
166
|
+
- spec/models/scim_engine/schema/user_spec.rb
|
167
|
+
- spec/rails_helper.rb
|
168
|
+
- spec/spec_helper.rb
|
169
|
+
homepage: https://github.com/Cisco-AMP/scim_engine
|
170
|
+
licenses:
|
171
|
+
- MIT
|
172
|
+
metadata:
|
173
|
+
allowed_push_host: https://rubygems.org
|
174
|
+
post_install_message:
|
175
|
+
rdoc_options: []
|
176
|
+
require_paths:
|
177
|
+
- lib
|
178
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - ">="
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
183
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
requirements: []
|
189
|
+
rubyforge_project:
|
190
|
+
rubygems_version: 2.4.5.1
|
191
|
+
signing_key:
|
192
|
+
specification_version: 4
|
193
|
+
summary: A general purpase SCIM implementation that could be plugged into rails applications
|
194
|
+
as an engine to provide SCIM functionality.
|
195
|
+
test_files:
|
196
|
+
- spec/spec_helper.rb
|
197
|
+
- spec/dummy/app/controllers/application_controller.rb
|
198
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
199
|
+
- spec/dummy/app/assets/javascripts/application.js
|
200
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
201
|
+
- spec/dummy/app/helpers/application_helper.rb
|
202
|
+
- spec/dummy/bin/rake
|
203
|
+
- spec/dummy/bin/setup
|
204
|
+
- spec/dummy/bin/bundle
|
205
|
+
- spec/dummy/bin/rails
|
206
|
+
- spec/dummy/config/secrets.yml
|
207
|
+
- spec/dummy/config/routes.rb
|
208
|
+
- spec/dummy/config/locales/en.yml
|
209
|
+
- spec/dummy/config/environments/production.rb
|
210
|
+
- spec/dummy/config/environments/development.rb
|
211
|
+
- spec/dummy/config/environments/test.rb
|
212
|
+
- spec/dummy/config/environment.rb
|
213
|
+
- spec/dummy/config/application.rb
|
214
|
+
- spec/dummy/config/boot.rb
|
215
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
216
|
+
- spec/dummy/config/initializers/mime_types.rb
|
217
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
218
|
+
- spec/dummy/config/initializers/session_store.rb
|
219
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
220
|
+
- spec/dummy/config/initializers/assets.rb
|
221
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
222
|
+
- spec/dummy/config/initializers/to_time_preserves_timezone.rb
|
223
|
+
- spec/dummy/config/initializers/inflections.rb
|
224
|
+
- spec/dummy/config.ru
|
225
|
+
- spec/dummy/Rakefile
|
226
|
+
- spec/dummy/public/favicon.ico
|
227
|
+
- spec/dummy/public/422.html
|
228
|
+
- spec/dummy/public/500.html
|
229
|
+
- spec/dummy/public/404.html
|
230
|
+
- spec/dummy/log/test.log
|
231
|
+
- spec/dummy/README.rdoc
|
232
|
+
- spec/models/scim_engine/resources/base_validation_spec.rb
|
233
|
+
- spec/models/scim_engine/resources/user_spec.rb
|
234
|
+
- spec/models/scim_engine/resources/base_spec.rb
|
235
|
+
- spec/models/scim_engine/schema/attribute_spec.rb
|
236
|
+
- spec/models/scim_engine/schema/group_spec.rb
|
237
|
+
- spec/models/scim_engine/schema/user_spec.rb
|
238
|
+
- spec/models/scim_engine/schema/base_spec.rb
|
239
|
+
- spec/models/scim_engine/resource_type_spec.rb
|
240
|
+
- spec/models/scim_engine/complex_types/email_spec.rb
|
241
|
+
- spec/controllers/scim_engine/schemas_controller_spec.rb
|
242
|
+
- spec/controllers/scim_engine/resource_types_controller_spec.rb
|
243
|
+
- spec/controllers/scim_engine/resources_controller_spec.rb
|
244
|
+
- spec/controllers/scim_engine/service_provider_configurations_controller_spec.rb
|
245
|
+
- spec/controllers/scim_engine/application_controller_spec.rb
|
246
|
+
- spec/rails_helper.rb
|