AbstractHttpAdapter bugfix 43/95743/1
authorSmokowski, Kevin (ks6305) <kevin.smokowski@att.com>
Mon, 16 Sep 2019 14:22:57 +0000 (14:22 +0000)
committerSmokowski, Kevin (ks6305) <kevin.smokowski@att.com>
Mon, 16 Sep 2019 14:22:57 +0000 (14:22 +0000)
basic auth key value needs Basic prepended not BASIC

Issue-ID: CCSDK-1729
Signed-off-by: Smokowski, Kevin (ks6305) <kevin.smokowski@att.com>
Change-Id: I204d4948a88f322ab2cfce5df4072850da2c0653

base/http/provider/src/main/java/org/onap/ccsdk/sli/adaptors/base/http/AbstractHttpAdapter.java

index fda4baf..92e64b6 100644 (file)
@@ -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);
         }