Enableing SAML auth co-exist with other OAuth services (#215)

* Enableing SAML auth co-exist with other OAuth services
* removing cert file
This commit is contained in:
Bruck Wubete
2018-05-03 11:18:43 -04:00
committed by Jesus Federico
parent 042a4738f4
commit 5d56d10bb9
5 changed files with 19 additions and 5 deletions

View File

@ -23,10 +23,6 @@ class SessionsController < ApplicationController
if Rails.application.config.omniauth_ldap
redirect_to "#{relative_root}/auth/ldap"
end
#If SAML is enabled, just route to it instead.
if Rails.application.config.omniauth_saml
redirect_to "#{relative_root}/auth/saml"
end
end
def create