[java-oidc-common] branch main updated: JCOMOIDC-152 - Deprecate the setAuthenticationFlows profile setting
Codeberg
noreply at shibboleth.net
Tue Jan 6 18:27:03 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-oidc-common.
View the commit online:
https://codeberg.org/Shibboleth/java-oidc-common/commit/2ca78f2900797148b7f29ea450eec31a8f2c55c8
The following commit(s) were added to refs/heads/main by this push:
new 2ca78f2 JCOMOIDC-152 - Deprecate the setAuthenticationFlows profile setting
2ca78f2 is described below
commit 2ca78f2900797148b7f29ea450eec31a8f2c55c8
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Jan 6 13:26:54 2026 -0500
JCOMOIDC-152 - Deprecate the setAuthenticationFlows profile setting
https://shibboleth.atlassian.net/browse/JCOMOIDC-152
Deprecated on AbstractOAuth2ClientAuthenticableProfileConfiguration
---
...stractOAuth2ClientAuthenticableProfileConfiguration.java | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/oauth2/config/impl/AbstractOAuth2ClientAuthenticableProfileConfiguration.java b/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/oauth2/config/impl/AbstractOAuth2ClientAuthenticableProfileConfiguration.java
index 53ba9b3..cb0977e 100644
--- a/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/oauth2/config/impl/AbstractOAuth2ClientAuthenticableProfileConfiguration.java
+++ b/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/oauth2/config/impl/AbstractOAuth2ClientAuthenticableProfileConfiguration.java
@@ -44,7 +44,9 @@ import net.shibboleth.shared.collection.CollectionSupport;
import net.shibboleth.shared.logic.Constraint;
import net.shibboleth.shared.logic.FunctionSupport;
import net.shibboleth.shared.logic.PredicateSupport;
+import net.shibboleth.shared.primitive.DeprecationSupport;
import net.shibboleth.shared.primitive.StringSupport;
+import net.shibboleth.shared.primitive.DeprecationSupport.ObjectType;
/**
* Base class for OAuth profile configurations that support OAuth-defined client authentication methods.
@@ -311,7 +313,7 @@ public abstract class AbstractOAuth2ClientAuthenticableProfileConfiguration
}
/** {@inheritDoc} */
- @Override
+ @Deprecated(since="3.3.1", forRemoval=true)
@Nonnull @NonnullElements @NotLive @Unmodifiable public Set<String> getAuthenticationFlows(
@Nullable final ProfileRequestContext profileRequestContext) {
final Set<String> flows = authenticationFlowsLookupStrategy.apply(profileRequestContext);
@@ -325,8 +327,14 @@ public abstract class AbstractOAuth2ClientAuthenticableProfileConfiguration
* Set the authentication flows to use.
*
* @param flows flow identifiers to use
+ *
+ * @deprecated
*/
+ @Deprecated(since="3.3.1", forRemoval=true)
public void setAuthenticationFlows(@Nullable @NonnullElements final Collection<String> flows) {
+ DeprecationSupport.warnOnce(ObjectType.CONFIGURATION, "setAuthenticationFlows", "relying-party.xml",
+ "setDefaultAuthenticationMethods");
+
if (flows != null) {
authenticationFlowsLookupStrategy =
FunctionSupport.constant(Set.copyOf(StringSupport.normalizeStringCollection(flows)));
@@ -339,7 +347,10 @@ public abstract class AbstractOAuth2ClientAuthenticableProfileConfiguration
* Set a lookup strategy for the authentication flows to use.
*
* @param strategy lookup strategy
+ *
+ * @deprecated
*/
+ @Deprecated(since="3.3.1", forRemoval=true)
public void setAuthenticationFlowsLookupStrategy(
@Nonnull final Function<ProfileRequestContext,Set<String>> strategy) {
authenticationFlowsLookupStrategy = Constraint.isNotNull(strategy, "Lookup strategy cannot be null");
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list