[java-identity-provider] branch dev/thymeleaf updated: Add back error view for chaining testing.
Scott Cantor
cantor.2 at osu.edu
Wed Jan 31 16:20:59 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch dev/thymeleaf
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=8273f02af56049b33a0a8cd084b9ad8aaf06628d
The following commit(s) were added to refs/heads/dev/thymeleaf by this push:
new 8273f02af Add back error view for chaining testing.
8273f02af is described below
commit 8273f02af56049b33a0a8cd084b9ad8aaf06628d
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Jan 31 11:20:56 2024 -0500
Add back error view for chaining testing.
---
.../net/shibboleth/idp/module/views/login-error.vm | 24 ++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/views/login-error.vm b/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/views/login-error.vm
new file mode 100644
index 000000000..4a9e6410f
--- /dev/null
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/views/login-error.vm
@@ -0,0 +1,24 @@
+## Velocity Template for login error message production, included by login.vm
+##
+## authenticationErrorContext - context containing error data, if available
+##
+#if ($authenticationErrorContext && $authenticationErrorContext.getClassifiedErrors().size() > 0 && !$authenticationErrorContext.getClassifiedErrors().contains('AuthenticationException'))
+ ## This handles errors that are classified by the message maps in the authentication config.
+ #set ($eventId = $authenticationErrorContext.getClassifiedErrors().iterator().next())
+ #if ($eventId != "ReselectFlow")
+ #set ($eventKey = $springMacroRequestContext.getMessage("$eventId", "authn"))
+ #set ($message = $springMacroRequestContext.getMessage("${eventKey}.message", "Login Failure: $eventId"))
+ #end
+#elseif ($authenticationErrorContext && $authenticationErrorContext.getExceptions().size() > 0)
+ ## This handles login exceptions that are left unclassified.
+ #set ($loginException = $authenticationErrorContext.getExceptions().get(0))
+ #if ($loginException.getMessage())
+ #set ($message = "Login Failure: $loginException.getMessage()")
+ #else
+ #set ($message = $loginException.toString())
+ #end
+#end
+
+#if ($message)
+ <p class="output-message output--error">$encoder.encodeForHTML($message)</p>
+#end
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list