IBMStockTrader / portfolio

Microservice implemented with MicroProfile that persists stock portfolios to JDBC (such as DB2)
Apache License 2.0
7 stars 60 forks source link

Watson no longer provides userid/password based credentials. #9

Open BarDweller opened 5 years ago

BarDweller commented 5 years ago

Watson has moved over to iam/apikey based auth.

Newly deployed Watson services do not offer Userid/Password based credentials, only apikey instead.

Current portfolio implementation does not support this, so it is no longer possible to deploy new instances of StockTrader.

BarDweller commented 5 years ago

Should migrate to using https://github.com/watson-developer-cloud/java-sdk/tree/master/tone-analyzer

Which would give support for iam/apikeys (see https://github.com/watson-developer-cloud/java-sdk#iam )

jwalcorn commented 5 years ago

We've found that passing "apikey" as the id and the value of the API key as the password actually works, with the current code. I do agree that we should revisit this code, but that at least reduces the severity of this issue.