Commit 4178df9
Changed files (4)
app
controllers
scim
config
initializers
app/controllers/scim/v2/service_providers_controller.rb
@@ -12,13 +12,7 @@ module Scim
private
def configuration
- x = Scim::Kit::V2::ServiceProviderConfiguration.new(
- location: scim_v2_ServiceProviderConfig_url
- )
- x.documentation_uri = documentation_url
- x.add_authentication(:oauthbearertoken, primary: true)
- x.meta.version = 1
- x
+ Scim::Kit::V2.configuration.service_provider_configuration
end
end
end
config/initializers/scim_kit.rb
@@ -0,0 +1,11 @@
+
+ActiveSupport::Notifications.subscribe 'proof.routes_loaded' do
+ url_helpers = Rails.application.routes.url_helpers
+
+ Scim::Kit::V2.configure do |config|
+ config.service_provider_configuration(location: url_helpers.scim_v2_ServiceProviderConfig_url) do |x|
+ x.documentation_uri = url_helpers.documentation_url
+ x.add_authentication(:oauthbearertoken, primary: true)
+ end
+ end
+end
config/routes.rb
@@ -62,3 +62,4 @@ Rails.application.routes.draw do
end
root to: "sessions#new"
end
+ActiveSupport::Notifications.instrument 'proof.routes_loaded'
Gemfile.lock
@@ -290,7 +290,8 @@ GEM
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
- scim-kit (0.2.2)
+ scim-kit (0.2.12)
+ activemodel (>= 5.2.0)
tilt (~> 2.0)
tilt-jbuilder (~> 0.7)
selenium-webdriver (3.141.0)