Docs: Update curl example to use --user for basic auth (#61226)

This commit is contained in:
Emil Tullstedt 2023-01-11 11:18:26 +01:00 committed by GitHub
parent 649b50055c
commit fc47e0d35e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,5 @@ You can't use authorization tokens in the request.
For example, to [list permissions associated with roles]({{< relref "../../administration/roles-and-permissions/access-control/manage-rbac-roles/" >}}) given a username of `user` and password of `password`, use:
```
curl --location --request GET '<grafana_url>/api/access-control/builtin-roles' --header 'Authorization: Basic dXNlcjpwYXNzd29yZAo='
curl --location '<grafana_url>/api/access-control/builtin-roles' --user 'user:password'
```
where `dXNlcjpwYXNzd29yZAo=` is the base64 encoding of `user:password`.