forked from External/greenlight
Added SAML2 support (#185)
* ~ in gitignore * add config options for SAML authentication * add information about SP metadata * add gem for omniauth-saml * Add the SAML strategy as a middleware * add gem for omniauth-saml * Send SAML request to saml module * Pass env parameters to saml provider * Add options for specifying saml signing certificate * Almost there * Re-enable SAML redirection * Correctly map saml attributes * change full certificate to only the fingerprint * change full certificate to only the fingerprint * revert changes to gitgnore * cleanup
This commit is contained in:
committed by
Jesus Federico
parent
8c64087395
commit
ab62fc3e13
@ -23,6 +23,10 @@ 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
|
||||
|
Reference in New Issue
Block a user