Commit 592e4781 authored by James Edwards-Jones's avatar James Edwards-Jones

Group SAML test button errors return to form

parent 1978e6d3
......@@ -28,6 +28,13 @@ class Groups::OmniauthCallbacksController < OmniauthCallbacksController
redirect_to after_sign_in_path_for(current_user)
end
override :redirect_identity_link_failed
def redirect_identity_link_failed(error_message)
flash[:notice] = "SAML authentication failed: #{error_message}"
redirect_to after_sign_in_path_for(current_user)
end
override :after_sign_in_path_for
def after_sign_in_path_for(resource)
saml_redirect_path || super
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment