Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update authentication for IAM support #14

Open
bberk041 opened this issue Jan 26, 2018 · 1 comment
Open

Update authentication for IAM support #14

bberk041 opened this issue Jan 26, 2018 · 1 comment

Comments

@bberk041
Copy link

My understanding of this so far is that initially <username>:<password> will be replaced with apikey:<apikey>. At some point this will also be replaced with token based authentication which isn't available yet.

@mfulgo
Copy link

mfulgo commented Mar 29, 2018

The work-around for this is fairly easy, though it's a manual tweak.

{
  "discovery": [
    {
      "name": "discovery-testing-discovery-1234567890123",
      "plan": "lite",
      "credentials": {
        "apikey": "<SomeReallyLongApiKey>",
        "iam_apikey_description": "Auto generated apikey <...>",
        "iam_apikey_name": "auto-generated-apikey-<uuid>",
        "iam_role_crn": "crn:v1:bluemix:public:iam::::serviceRole:Writer",
        "iam_serviceid_crn": "crn:v1:<...>",
        "url": "https://gateway.watsonplatform.net/discovery/api"
      }
    }
  ]
}

To get things working, tweak the above json to the following:

{
  "username": "apikey",
  "password": "<SomeReallyLongApiKey>",
  "url": "https://gateway.watsonplatform.net/discovery/api"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants