gnunet-handbook

The GNUnet Handbook
Log | Files | Refs

commit 9b0bb1078ba7432c6bec976efa329c0285dfab77
parent f8ddc08f36a9b76196c9b067ea8983672456a716
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Thu,  8 Sep 2022 23:55:46 +0200

minor

Diffstat:
Mman_developers/rest/index.rst | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/man_developers/rest/index.rst b/man_developers/rest/index.rst @@ -19,17 +19,17 @@ The service is run by each user so you may have to modify the port accordingly: Note that you may need to authenticate agains the API using HTTP basic authentication. The REST service autogenerates a password upon first launch. -You can inspect your user-specific authentication secret by executing: +You can get your user-specific authentication secret by executing: :: - $ cat $(gnunet-config -f -s rest -o BASIC_AUTH_SECRET_FILE) + $ SECRET=$(gnunet-config -f -s rest -o BASIC_AUTH_SECRET_FILE) To access the REST API, you can use any HTTP client such as a browser or cURL: :: - $ curl localhost:7776/identity -u<username>:<secret> + $ curl localhost:7776/identity -u<$USER>:<$SECRET> You may disable the authentication if you want to by executing: