summaryrefslogtreecommitdiff
path: root/eaaf_modules/eaaf_module_auth_sl20
diff options
context:
space:
mode:
authorThomas Lenz <thomas.lenz@egiz.gv.at>2019-11-12 09:47:08 +0100
committerThomas Lenz <thomas.lenz@egiz.gv.at>2019-11-12 09:47:08 +0100
commit465c25d4d338b4058366456d3fd7a41cd372481b (patch)
tree26eadc10f9a856d17299d4007d1073e11c57111e /eaaf_modules/eaaf_module_auth_sl20
parent25c26922b092072330d04ca36a441df2770b7807 (diff)
downloadEAAF-Components-465c25d4d338b4058366456d3fd7a41cd372481b.tar.gz
EAAF-Components-465c25d4d338b4058366456d3fd7a41cd372481b.tar.bz2
EAAF-Components-465c25d4d338b4058366456d3fd7a41cd372481b.zip
refactor AuthModule interface to inject current IRequest into selectProcess method
Diffstat (limited to 'eaaf_modules/eaaf_module_auth_sl20')
-rw-r--r--eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/AbstractSL20AuthenticationModulImpl.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/AbstractSL20AuthenticationModulImpl.java b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/AbstractSL20AuthenticationModulImpl.java
index 64739dd8..7e306f25 100644
--- a/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/AbstractSL20AuthenticationModulImpl.java
+++ b/eaaf_modules/eaaf_module_auth_sl20/src/main/java/at/gv/egiz/eaaf/modules/auth/sl20/AbstractSL20AuthenticationModulImpl.java
@@ -10,7 +10,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
-import at.gv.egiz.eaaf.core.api.data.EAAFConstants;
+import at.gv.egiz.eaaf.core.api.IRequest;
import at.gv.egiz.eaaf.core.api.idp.IConfiguration;
import at.gv.egiz.eaaf.core.api.idp.ISPConfiguration;
import at.gv.egiz.eaaf.core.api.idp.auth.modules.AuthModule;
@@ -58,8 +58,8 @@ public abstract class AbstractSL20AuthenticationModulImpl implements AuthModule
* @see at.gv.egovernment.moa.id.auth.modules.AuthModule#selectProcess(at.gv.egovernment.moa.id.process.api.ExecutionContext)
*/
@Override
- public String selectProcess(ExecutionContext context) {
- final ISPConfiguration spConfig = (ISPConfiguration) context.get(EAAFConstants.PROCESSCONTEXT_SP_CONFIG);
+ public String selectProcess(ExecutionContext context, IRequest pendingReq) {
+ final ISPConfiguration spConfig = pendingReq.getServiceProviderConfiguration();
if (spConfig == null) {
log.error("Suspect state. NO SP CONFIGURATION IN CONTEXT!");