reformatted need_info response

multiparty
Justin Richer 2016-01-19 21:21:14 -05:00
parent 5663fd864e
commit c9e09e1698
1 changed files with 3 additions and 3 deletions

View File

@ -58,10 +58,11 @@ public class UmaExceptionHandler {
entity.addProperty(JsonErrorView.ERROR, "need_info");
JsonObject details = new JsonObject();
details.addProperty("redirect_user", true);
details.addProperty("ticket", nie.getTicketValue());
details.addProperty("claims_endpoint", config.getIssuer() + ClaimsCollectionEndpoint.URL);
JsonObject rpClaims = new JsonObject();
rpClaims.addProperty("redirect_user", true);
rpClaims.addProperty("ticket", nie.getTicketValue());
JsonArray req = new JsonArray();
for (Claim claim : nie.getUnmatched()) {
JsonObject c = new JsonObject();
@ -83,7 +84,6 @@ public class UmaExceptionHandler {
rpClaims.add("required_claims", req);
details.add("requesting_party_claims", rpClaims);
entity.add("error_details", details);
entity.addProperty("claims_endpoint", config.getIssuer() + ClaimsCollectionEndpoint.URL);
Map<String, Object> m = new HashMap<>();
m.put(JsonEntityView.ENTITY, entity);