From 23d54f577d7884fef98b9eaff0b441f5d1f84437 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Tue, 3 Dec 2019 15:35:40 +0000 Subject: [PATCH] authparams : Update comments on JWT git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@5781 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- authparams.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/authparams.php b/authparams.php index 14f3a37..bf0d53b 100644 --- a/authparams.php +++ b/authparams.php @@ -117,7 +117,14 @@ class authparams /** Get the information from a Bearer Token * The token MUST be set in HTTP Header : - * Authorization: Bearer + * Authentication: Bearer + * Ex in curl : + * curl -s -u "login:password" -X POST \ + * http://localhost/rest/authentication/ | jq -r + * curl -s \ + * -H "Accept: application/json" \ + * -H "Authentication: Bearer ${BearerToken}" \ + * http://localhost/rest/api/ * The real verification are done in authjwt, as we can not have the * jwtServerKey defined in property : the execution is done in constructor */