Docs: Update curl example to use --user for basic auth (#61226)
This commit is contained in:
1 parent
649b50055c
commit
fc47e0d35e
1 file changed
+1
-3
@@ -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`.
|
||||
Reference in new issue
Block a user