Kong API Gateway basic-auth reset consumer password not documented anywhere #12596
-
There is plenty of documentation related on how to create a consumer and a basic-auth credential for it. However, there is no documentation about how to reset a basic-auth password of an existing consumer. Here is how you can create a consumer from the Kong API Gateway docs: curl -s localhost:8001/consumers -d username=bob | jq Create basic-auth credentials next curl -s localhost:8001/consumers/bob/basic-auth -d username=bob -d password=supersecretpassword | jq However, I cannot find anywhere about resetting/changing an existing password. I have tried the following: curl -i -X PUT http://localhost:8001/consumers/devopsadmin/basic-auth \
--data "username=bob" \
--data "password=supersecretpassword1" This produces the following error When changing the above curl command to use Does anyone know how to reset a consumer's basic-auth password in kong without deleting and re-creating the consumer? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @digitalray, you need to specify the ID of the basic-auth credential when updating the password, e.g.
The documentation is lacking in that respect, I'll open a ticket to fix that. |
Beta Was this translation helpful? Give feedback.
Hello @digitalray,
you need to specify the ID of the basic-auth credential when updating the password, e.g.
The documentation is lacking in that respect, I'll open a ticket to fix that.