From b33ba9de6a50b592c71d6e266608b0628f99ff6c Mon Sep 17 00:00:00 2001 From: Ryan Doherty Date: Mon, 25 Nov 2024 06:22:05 -0500 Subject: [PATCH] Revert to original cookie value for backward compatibility --- .../main/java/org/gusdb/wdk/service/service/SessionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Service/src/main/java/org/gusdb/wdk/service/service/SessionService.java b/Service/src/main/java/org/gusdb/wdk/service/service/SessionService.java index a87f3c599..3afaa5a43 100644 --- a/Service/src/main/java/org/gusdb/wdk/service/service/SessionService.java +++ b/Service/src/main/java/org/gusdb/wdk/service/service/SessionService.java @@ -275,7 +275,7 @@ private Response getSuccessResponse(TwoTuple newUser, // FIXME: cookie sending should be removed/deleted once client has support for header/response body transmission CookieBuilder bearerTokenCookie = new CookieBuilder( HttpHeaders.AUTHORIZATION, - "Bearer " + newUser.getFirst().getTokenValue()); + newUser.getFirst().getTokenValue()); bearerTokenCookie.setMaxAge(EXPIRATION_3_YEARS_SECS); redirectUrl = getSuccessRedirectUrl(redirectUrl, newUser.getSecond(), bearerTokenCookie);