[java-idp-plugin-duo] branch dev/JDUO-80 updated: Some UI cleanup.

Scott Cantor cantor.2 at osu.edu
Wed Jan 3 17:06:29 UTC 2024


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

scantor pushed a commit to branch dev/JDUO-80
in repository java-idp-plugin-duo.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-duo.git;a=commit;h=6385248eb0503cc446c8c9d60e54346c81c79c5c

The following commit(s) were added to refs/heads/dev/JDUO-80 by this push:
     new 6385248e Some UI cleanup.
6385248e is described below

commit 6385248eb0503cc446c8c9d60e54346c81c79c5c
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Jan 3 12:05:01 2024 -0500

    Some UI cleanup.
---
 .../idp/plugin/authn/duo/messages.properties        |  8 ++++++--
 .../idp/plugin/authn/duo/views/passwordless.vm      | 21 +++++++++++++++------
 2 files changed, 21 insertions(+), 8 deletions(-)

diff --git a/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages.properties b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages.properties
index 77eae7d8..ebb51830 100644
--- a/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages.properties
+++ b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages.properties
@@ -8,7 +8,11 @@
 # in their own message files.
 
 
-idp.duo.passwordless = Passwordless Login
-idp.duo.cancel = Password Login
+idp.duo.passwordless.explain = If you've enrolled a passkey or device/token for passwordless login, please enter your \
+    username below and press the corresponding button. To bypass this option, just press the alternate button to perform a \
+    traditional login.
+
+idp.duo.passwordless.proceed = Login with Passkey or Device
+idp.duo.passwordless.cancel = Login with Password
 
 idp.duo.passwordless.unsupported = You have not enrolled a qualifying device for Passwordless use.
diff --git a/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/views/passwordless.vm b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/views/passwordless.vm
index c981e667..d22a831f 100644
--- a/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/views/passwordless.vm
+++ b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/views/passwordless.vm
@@ -67,6 +67,17 @@
                     #if ($desc)
                         <p>$encoder.encodeForHTML($desc)</p>
                     #end
+
+                    <blockquote>#springMessageText("idp.duo.passwordless.explain", "If you've enrolled a passkey or device/token for passwordless login,
+                    please enter your username below and press the corresponding button. To bypass this option, just press the alternate button
+                    to perform a traditional login.")</blockquote>
+
+                    <div class="grid">
+                        <div class="grid-item">
+                            <button type="submit" name="_eventId_cancel"
+                                >#springMessageText("idp.duo.passwordless.cancel", "Login with Password")</button>
+                        </div>
+                    </div>
                     
                     #if ($eventId == "RequestUnsupported")
                         <p class="output-message output--error">$encoder.encodeForHTML("#springMessageText('idp.duo.passwordless.unsupported', 'You have not enrolled a qualifying device for Passwordless use.')")</p>
@@ -78,21 +89,19 @@
                         
                     <input type="checkbox" name="donotcache" value="1" id="donotcache" />
                     <label for="donotcache">#springMessageText("idp.login.donotcache", "Don't Remember Login")</label>
+
+                    <input id="_shib_idp_revokeConsent" type="checkbox" name="_shib_idp_revokeConsent" value="true" />
+                    <label for="_shib_idp_revokeConsent">#springMessageText("idp.attribute-release.revoke", "Clear prior granting of permission for release of your information to this service.")</label>
     
                     <div class="grid">
                         <div class="grid-item">
                             <button type="submit" name="_eventId_proceed"
-                                >#springMessageText("idp.duo.passwordless", "Passwordless Login")</button>
-                        </div>
-                        <div class="grid-item">
-                            <button type="submit" name="_eventId_cancel"
-                                >#springMessageText("idp.duo.cancel", "Password Login")</button>
+                                >#springMessageText("idp.duo.passwordless.proceed", "Login with Passkey or Device")</button>
                         </div>
                     </div>
                 </form>
     
                 <ul>
-                    <li><a href="#springMessageText("idp.url.password.reset", '#')">#springMessageText("idp.login.forgotPassword", "Forgot your password?")</a></li>
                     <li><a href="#springMessageText("idp.url.helpdesk", '#')">#springMessageText("idp.login.needHelp", "Need Help?")</a></li>
                 </ul>
             </section>

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


More information about the commits mailing list