From c0586e3a4b17ce6d3b0c55f6bc6ba6aa9ed1dece Mon Sep 17 00:00:00 2001 From: "Jeremy R. Easton-Marks" Date: Thu, 2 Jun 2016 11:34:53 -0400 Subject: [PATCH] Bearer Double - Removed Double Bearer Token Issue --- .../harvard/hms/dbmi/bd2k/irct/security/SecurityUtility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/edu/harvard/hms/dbmi/bd2k/irct/security/SecurityUtility.java b/src/main/java/edu/harvard/hms/dbmi/bd2k/irct/security/SecurityUtility.java index a1fad0d..ff5d800 100644 --- a/src/main/java/edu/harvard/hms/dbmi/bd2k/irct/security/SecurityUtility.java +++ b/src/main/java/edu/harvard/hms/dbmi/bd2k/irct/security/SecurityUtility.java @@ -43,7 +43,7 @@ public class SecurityUtility { public static String delegateToken(String namespace, String resourceClientId, SecureSession session) { if (((JWT) session.getToken()).getClientId().equals(resourceClientId)) { - return "Bearer " + session.getToken().toString(); + return session.getToken().toString(); } if (session.getDelegated().containsKey(resourceClientId)) {