From 83791850ff9fa8d58fe95b3b8522a388003ef892 Mon Sep 17 00:00:00 2001 From: landrigun Date: Wed, 12 Oct 2022 15:47:57 +0000 Subject: [PATCH] feat: #11 update README --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a0c26d7..43810ba 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ The server uses **RS384** signature algorithm (asymmetric). You have to create a openssl genrsa -out priv.pem 2048 openssl rsa -in priv.pem -outform PEM -pubout -out pub.pem ``` -**WARN**: those files must be readable be the server user +**WARN**: those files must be readable be the server user. ### INI file To start the server correctly, you need to create an `.ini` file as below: @@ -44,6 +44,10 @@ expiration_time = 2 # in hours ## Run ```bash ./simple-auth + +curl http://:/get/ -d '{"username":"", "password":""}' +# should returned +{"token":"
.."} ``` ## Test