[java-identity-provider] branch main updated: Fix call to deprecated method.

Scott Cantor cantor.2 at osu.edu
Tue Dec 19 17:01:05 UTC 2023


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=764589b76dc5f34741d29c62094421589779b4de

The following commit(s) were added to refs/heads/main by this push:
     new 764589b76 Fix call to deprecated method.
764589b76 is described below

commit 764589b76dc5f34741d29c62094421589779b4de
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Dec 19 12:01:03 2023 -0500

    Fix call to deprecated method.
---
 .../src/main/resources/net/shibboleth/idp/module/views/login.vm         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/views/login.vm b/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/views/login.vm
index 43965dc80..857422dc7 100644
--- a/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/views/login.vm
+++ b/idp-conf-impl/src/main/resources/net/shibboleth/idp/module/views/login.vm
@@ -20,7 +20,7 @@
 ## custom - arbitrary object injected by deployer
 ##
 #set ($rpContext = $profileRequestContext.getSubcontext('net.shibboleth.profile.context.RelyingPartyContext'))
-#set ($username = $authenticationContext.getSubcontext('net.shibboleth.idp.authn.context.UsernamePasswordContext', true).getUsername())
+#set ($username = $authenticationContext.ensureSubcontext('net.shibboleth.idp.authn.context.UsernamePasswordContext').getUsername())
 ##
 #set ($onClick = "this.childNodes[0].nodeValue='#springMessageText('idp.login.pleasewait', 'Logging in, please wait...')'")
 $response.addHeader("Content-Security-Policy", "script-src-attr 'unsafe-hashes' 'sha256-$cspDigester.apply($onClick)'")

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list