[java-identity-provider] 01/02: Handle login error events a bit more generally.
Scott Cantor
cantor.2 at osu.edu
Wed Aug 29 14:18:45 EDT 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch master
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=d16ca2055ee0a8638683de4f6f510e57ab66dd38
commit d16ca2055ee0a8638683de4f6f510e57ab66dd38
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Aug 29 14:17:37 2018 -0400
Handle login error events a bit more generally.
---
idp-conf/src/main/resources/views/login-error.vm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/idp-conf/src/main/resources/views/login-error.vm b/idp-conf/src/main/resources/views/login-error.vm
index 44676b3..bfef4d2 100644
--- a/idp-conf/src/main/resources/views/login-error.vm
+++ b/idp-conf/src/main/resources/views/login-error.vm
@@ -15,6 +15,13 @@
#else
#set ($message = $loginException.toString())
#end
+#else
+ ## This handles other login events.
+ #set ($eventCtx = $profileRequestContext.getSubcontext("org.opensaml.profile.context.EventContext"))
+ #if ($eventCtx.getEvent() && $eventCtx.getEvent() != "ReselectFlow")
+ #set ($eventKey = $springMacroRequestContext.getMessage("$eventCtx.getEvent()", "login"))
+ #set ($message = $springMacroRequestContext.getMessage("${eventKey}.message", "Login Failure: $eventId"))
+ #end
#end
#if ($message)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list