From 465c25d4d338b4058366456d3fd7a41cd372481b Mon Sep 17 00:00:00 2001 From: Thomas Lenz Date: Tue, 12 Nov 2019 09:47:08 +0100 Subject: refactor AuthModule interface to inject current IRequest into selectProcess method --- .../src/main/java/at/gv/egiz/eaaf/core/api/data/EAAFConstants.java | 1 - .../java/at/gv/egiz/eaaf/core/api/idp/auth/modules/AuthModule.java | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'eaaf_core_api/src') diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/EAAFConstants.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/EAAFConstants.java index 2397ef0a..32ea7a6f 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/EAAFConstants.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/data/EAAFConstants.java @@ -68,7 +68,6 @@ public class EAAFConstants { public static final String PROCESS_ENGINE_PENDINGREQUESTID = PROCESS_ENGINE_PREFIX + PARAM_HTTP_TARGET_PENDINGREQUESTID; public static final String PROCESS_ENGINE_SERVICE_PROVIDER_ENTITYID = PROCESS_ENGINE_PREFIX + "uniqueSPId"; public static final String PROCESS_ENGINE_SSL_CLIENT_CERTIFICATE = PROCESS_ENGINE_PREFIX + "holderofkey_cert"; - public static final String PROCESSCONTEXT_SP_CONFIG = PROCESS_ENGINE_PREFIX + "spConfig"; public static final String PROCESS_ENGINE_REQUIRES_NO_POSTAUTH_REDIRECT = PROCESS_ENGINE_PREFIX + "requireNoPostAuthRedirect"; public static final String PROCESSCONTEXT_SWITCH_LANGUAGE = "changeLanguage"; diff --git a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/modules/AuthModule.java b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/modules/AuthModule.java index 16df7231..7f5eef06 100644 --- a/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/modules/AuthModule.java +++ b/eaaf_core_api/src/main/java/at/gv/egiz/eaaf/core/api/idp/auth/modules/AuthModule.java @@ -26,6 +26,7 @@ *******************************************************************************/ package at.gv.egiz.eaaf.core.api.idp.auth.modules; +import at.gv.egiz.eaaf.core.api.IRequest; import at.gv.egiz.eaaf.core.api.idp.process.ExecutionContext; /** @@ -53,9 +54,10 @@ public interface AuthModule { * * @param context * an ExecutionContext for a process. + * @param pendingReq the current processed pending request * @return the process-ID of a process which is able to work with the given ExecutionContext, or {@code null}. */ - String selectProcess(ExecutionContext context); + String selectProcess(ExecutionContext context, IRequest pendingReq); /** * Returns the an Array of {@link ProcessDefinition}s of the processes included in this module. -- cgit v1.2.3