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:
Peter Havekes
2018-03-02 15:31:12 +01:00
committed by Jesus Federico
parent 8c64087395
commit ab62fc3e13
6 changed files with 66 additions and 1 deletions

View File

@ -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