[java-identity-provider] branch maint-4 updated: IDP-995 - Administrative logout features

Scott Cantor cantor.2 at osu.edu
Wed Jan 4 20:35:12 UTC 2023


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

scantor pushed a commit to branch maint-4
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=701458c94319fa7f7ca4c6c46c5f16e66b5a76a2

The following commit(s) were added to refs/heads/maint-4 by this push:
     new 701458c94 IDP-995 - Administrative logout features
701458c94 is described below

commit 701458c94319fa7f7ca4c6c46c5f16e66b5a76a2
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Jan 4 15:35:09 2023 -0500

    IDP-995 - Administrative logout features
    
    https://shibboleth.atlassian.net/browse/IDP-995
    
    Optimize out building resolution context when using cached result.
---
 .../idp/authn/revocation/impl/AttributeRevocationCondition.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/revocation/impl/AttributeRevocationCondition.java b/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/revocation/impl/AttributeRevocationCondition.java
index e4cfa00bc..f120d59c0 100644
--- a/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/revocation/impl/AttributeRevocationCondition.java
+++ b/idp-authn-impl/src/main/java/net/shibboleth/idp/authn/revocation/impl/AttributeRevocationCondition.java
@@ -178,10 +178,10 @@ public class AttributeRevocationCondition extends AbstractInitializableComponent
         
         final ScratchContext context = input.getSubcontext(ScratchContext.class, true);
         
-        final AttributeResolutionContext resolutionContext = buildResolutionContext(input, principal);
-
         if (!context.getMap().containsKey(getClass())) {
+            final AttributeResolutionContext resolutionContext = buildResolutionContext(input, principal);
             resolutionContext.resolveAttributes(attributeResolver);
+            
             final Collection<Instant> records = new ArrayList<>();
             if (resolutionContext.getResolvedIdPAttributes().containsKey(attributeId)) {
                 for (final IdPAttributeValue value :

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


More information about the commits mailing list