[java-idp-plugin-totp] branch main updated: Expose window size and step size as properties.
Scott Cantor
cantor.2 at osu.edu
Wed Sep 4 19:57:41 UTC 2024
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-idp-plugin-totp.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-totp.git;a=commit;h=e9bdbdc9c054a78226fcf429fa7c06e376fd3a78
The following commit(s) were added to refs/heads/main by this push:
new e9bdbdc Expose window size and step size as properties.
e9bdbdc is described below
commit e9bdbdc9c054a78226fcf429fa7c06e376fd3a78
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Sep 4 15:57:38 2024 -0400
Expose window size and step size as properties.
---
.../net/shibboleth/idp/flows/authn/TOTP/TOTP-authenticator.xml | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/totp-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/TOTP/TOTP-authenticator.xml b/totp-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/TOTP/TOTP-authenticator.xml
index b3cbe1a..e69ebd9 100644
--- a/totp-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/TOTP/TOTP-authenticator.xml
+++ b/totp-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/TOTP/TOTP-authenticator.xml
@@ -12,6 +12,14 @@
default-init-method="initialize"
default-destroy-method="destroy">
- <bean id="DefaultAuthenticator" class="net.shibboleth.idp.plugin.authn.totp.impl.GoogleTOTPAuthenticator" lazy-init="true" />
+ <bean id="DefaultConfigFactory" class="com.warrenstrange.googleauth.GoogleAuthenticatorConfig.GoogleAuthenticatorConfigBuilder"
+ p:windowSize="%{idp.authn.TOTP.windowSize:3}"
+ p:timeStepSizeInMillis="%{idp.authn.TOTP.timeStepSize:30000}" />
+
+ <bean id="DefaultConfig" factory-bean="DefaultConfigFactory" factory-method="build" />
+
+
+ <bean id="DefaultAuthenticator" class="net.shibboleth.idp.plugin.authn.totp.impl.GoogleTOTPAuthenticator" lazy-init="true"
+ p:googleAuthenticatorConfig-ref="DefaultConfig" />
</beans>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list