File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22require 'json/jwt'
33require 'onelogin/ruby-saml'
44require 'entities/user_entity'
5- require 'helpers/auth/auth_saml_helper.rb'
65#
76# Provides the authentication API for Doubtfire.
87# Users can sign in via email and password and receive an auth token
1110class AuthenticationApi < Grape ::API
1211 helpers LogHelper
1312 helpers AuthenticationHelpers
13+ helpers Auth ::AuthSamlHelper
1414
1515 #
1616 # Sign in - only mounted if AAF auth is NOT used
@@ -86,10 +86,10 @@ class AuthenticationApi < Grape::API
8686 end
8787 post '/auth/jwt' do
8888 # this endpoint is being deprecated and will be removed
89- AuthSAMLHelper . auth_saml2 params [ :SAMLResponse ]
89+ AuthSamlHelper . auth_saml2 params [ :SAMLResponse ]
9090 end
9191 post '/auth/saml2' do
92- AuthSAMLHelper . auth_saml2 params [ :SAMLResponse ]
92+ AuthSamlHelper . auth_saml2 params [ :SAMLResponse ]
9393 end
9494 end
9595
Original file line number Diff line number Diff line change 11require 'json/jwt'
22require 'onelogin/ruby-saml'
33
4- class AuthSamlHelper
4+ module Auth :: AuthSamlHelper
55 def auth_saml2 ( respSAML )
66 response = OneLogin ::RubySaml ::Response . new ( respSAML , allowed_clock_drift : 1 . second ,
77 settings : AuthenticationHelpers . saml_settings )
You can’t perform that action at this time.
0 commit comments