Skip to content

Kong API Gateway basic-auth reset consumer password not documented anywhere #12596

Answered by hanshuebner
digitalray asked this question in Help
Discussion options

You must be logged in to vote

Hello @digitalray,

you need to specify the ID of the basic-auth credential when updating the password, e.g.

$ curl -sX PATCH http://localhost:8001/consumers/bob/basic-auth/a0221fc9-47eb-488a-8f5e-7194d07e08ed -d password=muahaha  | jq .
{
  "id": "a0221fc9-47eb-488a-8f5e-7194d07e08ed",
  "username": "bob",
  "tags": null,
  "password": "1c7eb01cba63eef50eff91cfa522c699b093da73",
  "created_at": 1709648556,
  "consumer": {
    "id": "3a594673-e9c4-4864-9102-5ef0e9abb4e7"
  }
}

The documentation is lacking in that respect, I'll open a ticket to fix that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@digitalray
Comment options

Answer selected by hanshuebner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants