[java-idp-plugin-duo] branch dev/JDUO-80 updated: Move view, add to module properties, add messages file.

Scott Cantor cantor.2 at osu.edu
Wed Jan 3 00:45:03 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=3a25d38d3b975465215eedb33a1eef598e349df7

The following commit(s) were added to refs/heads/dev/JDUO-80 by this push:
     new 3a25d38d Move view, add to module properties, add messages file.
3a25d38d is described below

commit 3a25d38d3b975465215eedb33a1eef598e349df7
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Jan 2 19:44:56 2024 -0500

    Move view, add to module properties, add messages file.
---
 .../idp/flows/authn/DuoOIDC/duo-oidc-authn-beans.xml       |  5 +++++
 .../shibboleth/idp/plugin/authn/duo/messages.properties    | 14 ++++++++++++++
 .../plugin/authn/duo/{nimbus => }/views/passwordless.vm    |  0
 .../idp/plugin/authn/duo/nimbus/module.properties          |  2 ++
 .../shibboleth/idp/plugin/authn/duo/sdk/module.properties  |  2 ++
 5 files changed, 23 insertions(+)

diff --git a/idp-duo-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/DuoOIDC/duo-oidc-authn-beans.xml b/idp-duo-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/DuoOIDC/duo-oidc-authn-beans.xml
index f30330ed..e0891e07 100644
--- a/idp-duo-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/DuoOIDC/duo-oidc-authn-beans.xml
+++ b/idp-duo-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/DuoOIDC/duo-oidc-authn-beans.xml
@@ -9,6 +9,11 @@
 
     default-init-method="initialize" default-destroy-method="destroy">
     
+    <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"
+        p:cacheSeconds="%{idp.message.cacheSeconds:300}"
+        p:basenames="classpath:/net/shibboleth/idp/plugin/authn/duo/messages"
+        p:defaultEncoding="UTF-8" />
+    
     <!-- Used in views to calculate CSP hashes and nonces, remove and adjust beans in flow when compatibility bumped past 5.0 -->
     
     <bean id="DuoCSPDigester" class="net.shibboleth.shared.codec.StringDigester"
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
new file mode 100644
index 00000000..77eae7d8
--- /dev/null
+++ b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/messages.properties
@@ -0,0 +1,14 @@
+# In addition to the Apache 2.0 license, this content is also licensed
+# under the Creative Commons Attribution-ShareAlike 3.0 Unported license
+# (see http://creativecommons.org/licenses/by-sa/3.0/). 
+
+# This is the as-delivered set of messages used in various views
+# so that internationalized translations can be made available and
+# so administrators can locally override or supplement the values
+# in their own message files.
+
+
+idp.duo.passwordless = Passwordless Login
+idp.duo.cancel = Password Login
+
+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/nimbus/views/passwordless.vm b/idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/views/passwordless.vm
similarity index 100%
rename from idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/nimbus/views/passwordless.vm
rename to idp-duo-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/views/passwordless.vm
diff --git a/idp-duo-nimbus-client-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/nimbus/module.properties b/idp-duo-nimbus-client-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/nimbus/module.properties
index 7865f52f..4c98e4f2 100644
--- a/idp-duo-nimbus-client-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/nimbus/module.properties
+++ b/idp-duo-nimbus-client-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/nimbus/module.properties
@@ -13,3 +13,5 @@ idp.authn.DuoOIDC.1.src = /net/shibboleth/idp/plugin/authn/duo/nimbus/conf/authn
 idp.authn.DuoOIDC.1.dest = conf/authn/duo-oidc-authn-config.xml
 idp.authn.DuoOIDC.2.src = /net/shibboleth/idp/plugin/authn/duo/nimbus/conf/authn/duo-oidc.properties
 idp.authn.DuoOIDC.2.dest = conf/authn/duo-oidc.properties
+idp.authn.DuoOIDC.3.src = /net/shibboleth/idp/plugin/authn/duo/views/passwordless.vm
+idp.authn.DuoOIDC.3.dest = views/passwordless.vm
diff --git a/idp-duo-sdk-client-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/sdk/module.properties b/idp-duo-sdk-client-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/sdk/module.properties
index b0d73671..e2ff44b0 100644
--- a/idp-duo-sdk-client-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/sdk/module.properties
+++ b/idp-duo-sdk-client-impl/src/main/resources/net/shibboleth/idp/plugin/authn/duo/sdk/module.properties
@@ -13,3 +13,5 @@ idp.authn.DuoOIDC.1.src = /net/shibboleth/idp/plugin/authn/duo/sdk/conf/authn/du
 idp.authn.DuoOIDC.1.dest = conf/authn/duo-oidc-authn-config.xml
 idp.authn.DuoOIDC.2.src = /net/shibboleth/idp/plugin/authn/duo/sdk/conf/authn/duo-oidc.properties
 idp.authn.DuoOIDC.2.dest = conf/authn/duo-oidc.properties
+idp.authn.DuoOIDC.3.src = /net/shibboleth/idp/plugin/authn/duo/views/passwordless.vm
+idp.authn.DuoOIDC.3.dest = views/passwordless.vm

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


More information about the commits mailing list