[java-idp-plugin-totp] branch main updated: Add some additional extension hooks.
Scott Cantor
cantor.2 at osu.edu
Fri Feb 5 18:44:06 UTC 2021
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=516cbad562d791278b7acbbe8b249c8fd31280c4
The following commit(s) were added to refs/heads/main by this push:
new 516cbad Add some additional extension hooks.
516cbad is described below
commit 516cbad562d791278b7acbbe8b249c8fd31280c4
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Feb 5 13:44:04 2021 -0500
Add some additional extension hooks.
---
.../META-INF/net/shibboleth/idp/flows/authn/TOTP/TOTP-beans.xml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/totp-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/TOTP/TOTP-beans.xml b/totp-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/TOTP/TOTP-beans.xml
index b891aa8..a14093a 100644
--- a/totp-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/TOTP/TOTP-beans.xml
+++ b/totp-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/TOTP/TOTP-beans.xml
@@ -25,20 +25,27 @@
p:basenames="classpath:/net/shibboleth/idp/plugin/authn/totp/messages"
p:defaultEncoding="UTF-8" />
+ <!-- Default username comes from previous c14n or session. -->
+ <bean id="DefaultUsernameLookupStrategy"
+ class="net.shibboleth.idp.session.context.navigate.CanonicalUsernameLookupStrategy" />
+
<bean id="ExtractTOTPFromHeader"
class="net.shibboleth.idp.plugin.authn.totp.impl.ExtractTOTPFromHeader" scope="prototype"
p:httpServletRequest-ref="shibboleth.HttpServletRequest"
+ p:usernameLookupStrategy="#{getObject('shibboleth.authn.TOTP.UsernameLookupStrategy') ?: getObject('DefaultUsernameLookupStrategy')}"
p:headerName="#{'%{idp.authn.TOTP.headerName:X-Shibboleth-TOTP}'.trim()}" />
<bean id="ExtractTOTPFromFormRequest"
class="net.shibboleth.idp.plugin.authn.totp.impl.ExtractTOTPFromFormRequest" scope="prototype"
p:httpServletRequest-ref="shibboleth.HttpServletRequest"
+ p:usernameLookupStrategy="#{getObject('shibboleth.authn.TOTP.UsernameLookupStrategy') ?: getObject('DefaultUsernameLookupStrategy')}"
p:fieldName="#{'%{idp.authn.TOTP.fieldName:tokencode}'.trim()}" />
<bean id="ValidateTOTPCredentials"
class="net.shibboleth.idp.authn.impl.ValidateCredentials" scope="prototype"
p:validators="#{getObject('shibboleth.authn.TOTP.Validator') ?: getObject('DefaultTOTPValidator')}"
p:resultCachingPredicate="#{getObject('shibboleth.authn.TOTP.resultCachingPredicate')}"
+ p:addDefaultPrincipals="%{idp.authn.TOTP.addDefaultPrincipals:true}"
p:classifiedMessages="#{getObject('shibboleth.authn.TOTP.ClassifiedMessageMap') ?: getObject('DefaultTOTPClassifiedMessageMap')}"
p:lockoutManager="#{getObject('shibboleth.authn.TOTP.AccountLockoutManager')}" />
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list