From 29924c8fd09d8b32d21a8e41f5a22f7fc282ec17 Mon Sep 17 00:00:00 2001 From: "Smokowski, Kevin (ks6305)" Date: Mon, 16 Sep 2019 14:22:57 +0000 Subject: AbstractHttpAdapter bugfix basic auth key value needs Basic prepended not BASIC Issue-ID: CCSDK-1729 Signed-off-by: Smokowski, Kevin (ks6305) Change-Id: I204d4948a88f322ab2cfce5df4072850da2c0653 --- .../java/org/onap/ccsdk/sli/adaptors/base/http/AbstractHttpAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/http/provider/src/main/java/org/onap/ccsdk/sli/adaptors/base/http/AbstractHttpAdapter.java b/base/http/provider/src/main/java/org/onap/ccsdk/sli/adaptors/base/http/AbstractHttpAdapter.java index fda4bafb..92e64b6d 100644 --- a/base/http/provider/src/main/java/org/onap/ccsdk/sli/adaptors/base/http/AbstractHttpAdapter.java +++ b/base/http/provider/src/main/java/org/onap/ccsdk/sli/adaptors/base/http/AbstractHttpAdapter.java @@ -83,7 +83,7 @@ public abstract class AbstractHttpAdapter { protected String getBasicAuthValue(String userName, String password) { String token = userName + ":" + password; try { - return "BASIC " + DatatypeConverter.printBase64Binary(token.getBytes("UTF-8")); + return "Basic " + DatatypeConverter.printBase64Binary(token.getBytes("UTF-8")); } catch (Exception e) { logger.error("getBasicAuthValue threw an exception, credentials will be null", e); } -- cgit 1.2.3-korg