[java-identity-provider] branch master updated: IDP-1207 - donotcache ignored on forceauthn

Scott Cantor cantor.2 at osu.edu
Tue Aug 29 11:07:29 EDT 2017


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=69148dc2afb6f1ebd873ce3d5a1b8eb98a85ea12

The following commit(s) were added to refs/heads/master by this push:
       new  69148dc   IDP-1207 - donotcache ignored on forceauthn
69148dc is described below

commit 69148dc2afb6f1ebd873ce3d5a1b8eb98a85ea12
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Aug 29 11:07:25 2017 -0400

    IDP-1207 - donotcache ignored on forceauthn
    
    https://issues.shibboleth.net/jira/browse/IDP-1207
---
 idp-conf/src/main/resources/views/login.vm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/idp-conf/src/main/resources/views/login.vm b/idp-conf/src/main/resources/views/login.vm
index c421a99..47c8f89 100644
--- a/idp-conf/src/main/resources/views/login.vm
+++ b/idp-conf/src/main/resources/views/login.vm
@@ -20,6 +20,7 @@
 ## custom - arbitrary object injected by deployer
 ##
 #set ($rpContext = $profileRequestContext.getSubcontext('net.shibboleth.idp.profile.context.RelyingPartyContext'))
+#set ($sessionContext = $profileRequestContext.getSubcontext('net.shibboleth.idp.session.context.SessionContext'))
 #set ($username = $authenticationContext.getSubcontext('net.shibboleth.idp.authn.context.UsernamePasswordContext', true).getUsername())
 #set ($passwordEnabled = false)
 #if (!$passwordPrincipals or $passwordPrincipals.isEmpty() or $authenticationContext.isAcceptable($passwordPrincipals))
@@ -66,10 +67,12 @@
                 <input class="form-element form-field" id="password" name="j_password" type="password" value="">
               </div>
 
+              #if (!$sessionContext || !$sessionContext.getIdPSession())
               <div class="form-element-wrapper">
                 <input type="checkbox" name="donotcache" value="1" id="donotcache">
                 <label for="donotcache">#springMessageText("idp.login.donotcache", "Don't Remember Login")</label>
                </div>
+              #end
             #end
 
               <div class="form-element-wrapper">

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


More information about the commits mailing list