aboutsummaryrefslogtreecommitdiff
path: root/id/server/idserverlib/src/main/java
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-08-08 15:55:42 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2013-08-08 15:55:42 +0200
commit085e28a515520656a281634297d399d550eb3898 (patch)
treee548d0b0d5c234ddf4f5660c8dcbe71e4c6376d1 /id/server/idserverlib/src/main/java
parent84b4c1da0e05567812ea30e899a4a28f9d421bc0 (diff)
downloadmoa-id-spss-085e28a515520656a281634297d399d550eb3898.tar.gz
moa-id-spss-085e28a515520656a281634297d399d550eb3898.tar.bz2
moa-id-spss-085e28a515520656a281634297d399d550eb3898.zip
Fixed PVP2 error URL
Diffstat (limited to 'id/server/idserverlib/src/main/java')
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVP2XProtocol.java4
-rw-r--r--id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVPTargetConfiguration.java11
2 files changed, 13 insertions, 2 deletions
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVP2XProtocol.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVP2XProtocol.java
index 34becbd49..6055484f7 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVP2XProtocol.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVP2XProtocol.java
@@ -193,6 +193,7 @@ public class PVP2XProtocol implements IModulInfo, MOAIDAuthConstants {
config.setOAURL(oaURL);
config.setBinding(binding);
config.setRequest(moaRequest);
+ config.setConsumerURL(consumerService.getLocation());
//TODO: set correct target;
config.setTarget(PVPConfiguration.getInstance().getTargetForSP(entityID));
@@ -270,8 +271,7 @@ public class PVP2XProtocol implements IModulInfo, MOAIDAuthConstants {
encoder = new RedirectBinding();
}
- //TODO: getOAURL is maybe not a valid ErrorResponse URL
- encoder.encodeRespone(request, response, samlResponse, protocolRequest.getOAURL());
+ encoder.encodeRespone(request, response, samlResponse, pvpRequest.getConsumerURL());
return true;
}
diff --git a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVPTargetConfiguration.java b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVPTargetConfiguration.java
index d15c307a1..d842d5fe0 100644
--- a/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVPTargetConfiguration.java
+++ b/id/server/idserverlib/src/main/java/at/gv/egovernment/moa/id/protocols/pvp2x/PVPTargetConfiguration.java
@@ -6,6 +6,7 @@ import at.gv.egovernment.moa.id.protocols.pvp2x.binding.MOARequest;
public class PVPTargetConfiguration extends RequestImpl {
MOARequest request;
String binding;
+ String consumerURL;
public MOARequest getRequest() {
return request;
@@ -22,4 +23,14 @@ public class PVPTargetConfiguration extends RequestImpl {
public void setBinding(String binding) {
this.binding = binding;
}
+
+ public String getConsumerURL() {
+ return consumerURL;
+ }
+
+ public void setConsumerURL(String consumerURL) {
+ this.consumerURL = consumerURL;
+ }
+
+
}