Skip to content

Commit

Permalink
Update pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avil…
Browse files Browse the repository at this point in the history
…lach/auth/service/auth/FENCEAuthenticationService.java


Committed validation to incorrect branch
  • Loading branch information
Gcolon021 authored Sep 14, 2023
1 parent 05371e3 commit 6a29a94
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@ public Response getFENCEProfile(String callback_url, Map<String, String> authReq
logger.debug("getFENCEProfile() starting...");
String fence_code = authRequest.get("code");

// Validate that the fence code is alphanumeric
if (!fence_code.matches("[a-zA-Z0-9]+")) {
logger.error("getFENCEProfile() fence code is not alphanumeric");
throw new NotAuthorizedException("The fence code is not alphanumeric");
}

JsonNode fence_user_profile = null;
// Get the Gen3/FENCE user profile. It is a JsonNode object
try {
Expand Down

0 comments on commit 6a29a94

Please sign in to comment.