From 6a29a94ae063b169406f21706c5205a96ca138bb Mon Sep 17 00:00:00 2001 From: Gcolon021 <34667267+Gcolon021@users.noreply.github.com> Date: Thu, 14 Sep 2023 13:31:19 -0400 Subject: [PATCH] Update pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/service/auth/FENCEAuthenticationService.java Committed validation to incorrect branch --- .../auth/service/auth/FENCEAuthenticationService.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/service/auth/FENCEAuthenticationService.java b/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/service/auth/FENCEAuthenticationService.java index 08f40b08d..9ff378fca 100644 --- a/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/service/auth/FENCEAuthenticationService.java +++ b/pic-sure-auth-services/src/main/java/edu/harvard/hms/dbmi/avillach/auth/service/auth/FENCEAuthenticationService.java @@ -157,12 +157,6 @@ public Response getFENCEProfile(String callback_url, Map 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 {