openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dube...@apache.org
Subject [openwhisk-package-kafka] branch master updated: Use API key for authentication when username is token (#350)
Date Fri, 23 Aug 2019 22:36:02 GMT
This is an automated email from the ASF dual-hosted git repository.

dubeejw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-package-kafka.git


The following commit(s) were added to refs/heads/master by this push:
     new b947477  Use API key for authentication when username is token (#350)
b947477 is described below

commit b9474774751f7cc3ba1ceac1d5f1dcdff83e05e9
Author: James Dubee <jwdubee@us.ibm.com>
AuthorDate: Fri Aug 23 18:35:57 2019 -0400

    Use API key for authentication when username is token (#350)
---
 action/messageHubFeedWeb.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/action/messageHubFeedWeb.js b/action/messageHubFeedWeb.js
index 6d903a0..779e700 100644
--- a/action/messageHubFeedWeb.js
+++ b/action/messageHubFeedWeb.js
@@ -267,7 +267,7 @@ function checkMessageHubCredentials(params) {
         url: topicURL,
         json: true,
         headers: {
-            'X-Auth-Token': params.username + params.password
+            'X-Auth-Token': params.username.toLowerCase() == "token" ? params.password :
params.username + params.password
         }
     };
 


Mime
View raw message