Open maverickash8889 opened 5 years ago
@maverickash8889 hey, thanks for bring this up.
You can use an IAM API key authentication with environment variables, in your docker deploy.yaml file, configure the following environment variables with your API key information and token service provider URL.
Watson Assistant:
WATSON_CONVERSATION_APIKEY=YOUR_API_KEY
WATSON_CONVERSATION_TOKEN_SERVICE_PROVIDER_URL=https://iam.bluemix.net/identity/token
Speech to Text:
WATSON_STT_APIKEY=YOUR_API_KEY
WATSON_STT_TOKEN_SERVICE_PROVIDER_URL=https://iam.bluemix.net/identity/token
Text to Speech:
WATSON_TTS_APIKEY=YOUR_API_KEY
WATSON_TTS_TOKEN_SERVICE_PROVIDER_URL=https://iam.bluemix.net/identity/token
More info on authentication: https://www.ibm.com/support/knowledgecenter/SS4U29/authentication.html
@jfmartinez I have submitted Pull Request (#161 ) considering the backward compatibility for the issue. Lemme know if it suffices.
Hi All,
Submitting a feature request for upgrading repo to support IAM way of authenticating services. The current implementation used in samples uses UserName and Passwords(IBM Cloud Identity) mechanism for authentication. With Oct 2018 press release! IBM suggests moving all services from cloud foundry to resource groups which supports IAM. We need to update the samples and middleware to accommodate both ways of authentication.