diff --git a/app/controllers/users/saml_sessions_controller.rb b/app/controllers/users/saml_sessions_controller.rb index 1890d9410e..b8f7432768 100644 --- a/app/controllers/users/saml_sessions_controller.rb +++ b/app/controllers/users/saml_sessions_controller.rb @@ -2,9 +2,23 @@ class Users::SamlSessionsController < Devise::SamlSessionsController after_action :store_winning_strategy, only: :create + + def new + super + end + + def metadata + super + end + + def create + super + end + private - + + # for Supporting multiple authentication strategies def store_winning_strategy warden.session(:user)[:strategy] = warden.winning_strategies[:user].class.name.demodulize.underscore.to_sym end