[java-identity-provider] 02/03: IDP-1875 - Subject decorator is not run with the MFA flow
Scott Cantor
cantor.2 at osu.edu
Fri Dec 17 18:42:23 UTC 2021
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch maint-4.1
in repository java-identity-provider.
View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=b4e1cb34052516b3aa2a2746a348c28d7b0168a3
commit b4e1cb34052516b3aa2a2746a348c28d7b0168a3
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Nov 2 13:34:23 2021 -0400
IDP-1875 - Subject decorator is not run with the MFA flow
https://shibboleth.atlassian.net/browse/IDP-1875
---
.../idp/authn/impl/FinalizeMultiFactorAuthentication.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/FinalizeMultiFactorAuthentication.java b/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/FinalizeMultiFactorAuthentication.java
index bd1d82461..cacc0ee8f 100644
--- a/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/FinalizeMultiFactorAuthentication.java
+++ b/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/impl/FinalizeMultiFactorAuthentication.java
@@ -18,6 +18,7 @@
package net.shibboleth.idp.authn.impl;
import java.util.Collection;
+import java.util.function.BiConsumer;
import java.util.function.Function;
import java.util.function.Predicate;
@@ -198,6 +199,12 @@ public class FinalizeMultiFactorAuthentication extends AbstractAuthenticationAct
authenticationContext.setAuthenticationResult(result);
+ final BiConsumer<ProfileRequestContext,Subject> decorator =
+ authenticationContext.getAttemptedFlow().getSubjectDecorator();
+ if (decorator != null) {
+ decorator.accept(profileRequestContext, result.getSubject());
+ }
+
// Override cacheability if a predicate is installed.
if (authenticationContext.isResultCacheable() && resultCachingPredicate != null) {
authenticationContext.setResultCacheable(resultCachingPredicate.test(profileRequestContext));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list