summaryrefslogtreecommitdiffstats
path: root/base/http
diff options
context:
space:
mode:
authorSmokowski, Kevin (ks6305) <kevin.smokowski@att.com>2019-09-16 14:22:57 +0000
committerSmokowski, Kevin (ks6305) <kevin.smokowski@att.com>2019-09-16 14:22:57 +0000
commit29924c8fd09d8b32d21a8e41f5a22f7fc282ec17 (patch)
tree6faee2265cbce341d39fd0b3a4c994a1eb0f1d6a /base/http
parent4736befed266373062619037ca55db4d6c9c2fb0 (diff)
AbstractHttpAdapter bugfix
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
Diffstat (limited to 'base/http')
-rw-r--r--base/http/provider/src/main/java/org/onap/ccsdk/sli/adaptors/base/http/AbstractHttpAdapter.java2
1 files changed, 1 insertions, 1 deletions
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 fda4bafba..92e64b6dd 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);
}