Commit 9d78b17

mo <mo.khan@gmail.com>
2017-10-22 23:08:23
update proof to point to local saml-kit.
1 parent e9bf0d8
Changed files (3)
app/controllers/sessions_controller.rb
@@ -45,7 +45,7 @@ class SessionsController < ApplicationController
   end
 
   def validate_saml_request(raw_saml_request = params[:SAMLRequest])
-    @saml_request = SamlRequest.decode(raw_saml_request)
+    @saml_request = Saml::Kit::SamlRequest.decode(raw_saml_request)
     render_http_status(:forbidden) unless @saml_request.valid?
   end
 
Gemfile
@@ -57,3 +57,4 @@ end
 # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
 gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
 gem 'dotenv-rails'
+gem 'saml-kit', path: '../saml-kit'
Gemfile.lock
@@ -1,3 +1,10 @@
+PATH
+  remote: ../saml-kit
+  specs:
+    saml-kit (0.1.0)
+      activesupport (~> 5.1)
+      builder (~> 3.2)
+
 GEM
   remote: https://rubygems.org/
   specs:
@@ -226,6 +233,7 @@ DEPENDENCIES
   rails (~> 5.1.4)
   rails-controller-testing
   rspec-rails (~> 3.6)
+  saml-kit!
   sass-rails (~> 5.0)
   selenium-webdriver
   spring