WASdev / sample.voice.gateway

Lots of helpful samples to help jumpstart development with the IBM Voice Gateway.
Apache License 2.0
62 stars 113 forks source link

[FeatureRequest]-Choice of using IAM and IBM Cloud Identity #147

Open maverickash8889 opened 5 years ago

maverickash8889 commented 5 years ago

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.

jfmartinez commented 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.

More info on authentication: https://www.ibm.com/support/knowledgecenter/SS4U29/authentication.html

maverickash8889 commented 5 years ago

@jfmartinez I have submitted Pull Request (#161 ) considering the backward compatibility for the issue. Lemme know if it suffices.