mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 19:00:54 -06:00
Docs: Update curl example to use --user for basic auth (#61226)
This commit is contained in:
parent
649b50055c
commit
fc47e0d35e
@ -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`.
|
||||
|
Loading…
Reference in New Issue
Block a user