From fc47e0d35ea6108f66e1ab0af16c607301c11b54 Mon Sep 17 00:00:00 2001 From: Emil Tullstedt Date: Wed, 11 Jan 2023 11:18:26 +0100 Subject: [PATCH] Docs: Update curl example to use --user for basic auth (#61226) --- docs/sources/developers/http_api/curl-examples.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/sources/developers/http_api/curl-examples.md b/docs/sources/developers/http_api/curl-examples.md index c2312d4d9c6..0965ae6c57b 100644 --- a/docs/sources/developers/http_api/curl-examples.md +++ b/docs/sources/developers/http_api/curl-examples.md @@ -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 '/api/access-control/builtin-roles' --header 'Authorization: Basic dXNlcjpwYXNzd29yZAo=' +curl --location '/api/access-control/builtin-roles' --user 'user:password' ``` - -where `dXNlcjpwYXNzd29yZAo=` is the base64 encoding of `user:password`.