From dc2e9d20d894fb69af69691617dcd213ab564e63 Mon Sep 17 00:00:00 2001 From: pavankumar181 Date: Fri, 6 Oct 2023 19:03:42 +0530 Subject: [PATCH] MODUSERBL-176 removed Ok case as its not needed --- .../java/org/folio/rest/client/impl/AuthTokenClientImpl.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/java/org/folio/rest/client/impl/AuthTokenClientImpl.java b/src/main/java/org/folio/rest/client/impl/AuthTokenClientImpl.java index 15be5316..db8d499b 100644 --- a/src/main/java/org/folio/rest/client/impl/AuthTokenClientImpl.java +++ b/src/main/java/org/folio/rest/client/impl/AuthTokenClientImpl.java @@ -47,8 +47,6 @@ public Future signTokenLegacy(JsonObject tokenPayload, OkapiConnectionPa return RestUtil.doRequest(httpClient, requestUrl, HttpMethod.POST, okapiConnectionParams.buildHeaders(), requestPayload) .map(response -> { switch (response.getCode()) { - case HttpStatus.SC_OK: - return response.getResponse().headers().get(BLUsersAPI.OKAPI_TOKEN_HEADER); case HttpStatus.SC_CREATED: return response.getJson().getString("token"); default: