Browse Source

removed extraneous bob

pull/708/merge
Justin Richer 10 years ago
parent
commit
a38a0b6f75
  1. 1
      openid-connect-server/src/main/java/org/mitre/uma/web/ClaimsAPI.java
  2. 17
      openid-connect-server/src/main/java/org/mitre/uma/web/ResourceSetRegistrationEndpoint.java

1
openid-connect-server/src/main/java/org/mitre/uma/web/ClaimsAPI.java

@ -22,7 +22,6 @@ import java.util.Set;
import org.mitre.openid.connect.view.HttpCodeView; import org.mitre.openid.connect.view.HttpCodeView;
import org.mitre.openid.connect.view.JsonEntityView; import org.mitre.openid.connect.view.JsonEntityView;
import org.mitre.openid.connect.view.JsonErrorView;
import org.mitre.openid.connect.web.RootController; import org.mitre.openid.connect.web.RootController;
import org.mitre.uma.model.Claim; import org.mitre.uma.model.Claim;
import org.mitre.uma.model.ResourceSet; import org.mitre.uma.model.ResourceSet;

17
openid-connect-server/src/main/java/org/mitre/uma/web/ResourceSetRegistrationEndpoint.java

@ -28,7 +28,6 @@ import org.mitre.openid.connect.config.ConfigurationPropertiesBean;
import org.mitre.openid.connect.view.HttpCodeView; import org.mitre.openid.connect.view.HttpCodeView;
import org.mitre.openid.connect.view.JsonEntityView; import org.mitre.openid.connect.view.JsonEntityView;
import org.mitre.openid.connect.view.JsonErrorView; import org.mitre.openid.connect.view.JsonErrorView;
import org.mitre.uma.model.Claim;
import org.mitre.uma.model.ResourceSet; import org.mitre.uma.model.ResourceSet;
import org.mitre.uma.service.ResourceSetService; import org.mitre.uma.service.ResourceSetService;
import org.mitre.uma.view.ResourceSetEntityAbbreviatedView; import org.mitre.uma.view.ResourceSetEntityAbbreviatedView;
@ -53,7 +52,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import com.google.common.base.Strings; import com.google.common.base.Strings;
import com.google.common.collect.Sets;
import com.google.gson.JsonElement; import com.google.gson.JsonElement;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
import com.google.gson.JsonParseException; import com.google.gson.JsonParseException;
@ -124,21 +122,6 @@ public class ResourceSetRegistrationEndpoint {
ResourceSet saved = resourceSetService.saveNew(rs); ResourceSet saved = resourceSetService.saveNew(rs);
///////
// TODO: REMOVE
///////
Claim c = new Claim();
c.setName("email");
c.setValue("bob@bob.com");
c.setIssuer(Sets.newHashSet("https://bob.com/"));
saved.setClaimsRequired(Sets.newHashSet(c));
saved = resourceSetService.update(saved, saved);
///////
/// END: REMOVE
///////
m.addAttribute("code", HttpStatus.CREATED); m.addAttribute("code", HttpStatus.CREATED);
m.addAttribute("entity", saved); m.addAttribute("entity", saved);
m.addAttribute("location", config.getIssuer() + URL + "/" + rs.getId()); m.addAttribute("location", config.getIssuer() + URL + "/" + rs.getId());

Loading…
Cancel
Save