[java-shib-profile] branch main updated: JSPROF-11 - Add attributes to resolve to resolving profile interface
Scott Cantor
cantor.2 at osu.edu
Wed Sep 17 19:04:07 UTC 2025
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-shib-profile.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-profile.git;a=commit;h=86dba4ffac91c29e228736a01e18a06b7bc1daf2
The following commit(s) were added to refs/heads/main by this push:
new 86dba4f JSPROF-11 - Add attributes to resolve to resolving profile interface
86dba4f is described below
commit 86dba4ffac91c29e228736a01e18a06b7bc1daf2
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Sep 17 15:04:04 2025 -0400
JSPROF-11 - Add attributes to resolve to resolving profile interface
https://shibboleth.atlassian.net/browse/JSPROF-11
---
.../AttributeResolvingProfileConfiguration.java | 25 +++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/shib-profile-api/src/main/java/net/shibboleth/profile/config/AttributeResolvingProfileConfiguration.java b/shib-profile-api/src/main/java/net/shibboleth/profile/config/AttributeResolvingProfileConfiguration.java
index 264808d..d4c5a5a 100644
--- a/shib-profile-api/src/main/java/net/shibboleth/profile/config/AttributeResolvingProfileConfiguration.java
+++ b/shib-profile-api/src/main/java/net/shibboleth/profile/config/AttributeResolvingProfileConfiguration.java
@@ -14,11 +14,17 @@
package net.shibboleth.profile.config;
+import java.util.Collection;
+
+import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.opensaml.profile.context.ProfileRequestContext;
import net.shibboleth.shared.annotation.ConfigurationSetting;
+import net.shibboleth.shared.annotation.constraint.NotLive;
+import net.shibboleth.shared.annotation.constraint.Unmodifiable;
+import net.shibboleth.shared.collection.CollectionSupport;
/**
* {@link ProfileConfiguration} with optional resolution of attributes.
@@ -37,6 +43,23 @@ public interface AttributeResolvingProfileConfiguration extends ProfileConfigura
@ConfigurationSetting(name="resolveAttributes")
boolean isResolveAttributes(@Nullable final ProfileRequestContext profileRequestContext);
+ /**
+ * Get specific attributes to resolve (if resolving).
+ *
+ * <p>TODO: Default implementation should be removed in 6.0.0.</p>
+ *
+ * @param profileRequestContext profile request context
+ *
+ * @return attributes to resolve
+ *
+ * @since 5.2.0
+ */
+ @ConfigurationSetting(name="requestedIdPAttributeNames")
+ @Nonnull @Unmodifiable @NotLive default Collection<String> getRequestedIdPAttributeNames(
+ @Nullable final ProfileRequestContext profileRequestContext) {
+ return CollectionSupport.emptySet();
+ }
+
/**
* Get the group of services for which attributes are being resolved.
*
@@ -56,5 +79,5 @@ public interface AttributeResolvingProfileConfiguration extends ProfileConfigura
@Nullable default String getAttributeRecipientGroupID(@Nullable final ProfileRequestContext profileRequestContext) {
return null;
}
-
+
}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list