- 12 Jul, 2018 5 commits
- 11 Jul, 2018 9 commits
-
-
Mat authored
testé dans postman, 2 espaces sinon JWT expiré, si je met @Security("has_role('ROLE_USER')") ça donne JWT Not Found
-
Mat authored
postman : 1/ - passe le login/pass en json dans le body, et récupère le token avec une requête POST sur 0.0.0.0:81/web/app_dev.php/API/login_check - puis passe dans le headers "Authorization: bearer <token>" avec la requête DELETE sur 0.0.0.0:81/web/app_dev.php/API/v2/brasserie/10 {"code":401,"message":"JWT Token Not Found"} 2/ - dans apache virtualhost, j'ajoute # SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 RewriteEngine On RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] - il retourne {"code":401,"message":"Invalid JWT Token"} 3/ - et là je finis par constater qu'il FAUT METTRE 2 ESPACES MINIMUM ENTRE bearer et le token
-
Mat authored
-
Mat authored
url: 0.0.0.0:81/web/app_dev.php/API/login_check body, raw: { "username": "mat", "password": "1234" } method: POST response: { "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOj..." }
-
Mat authored
url: 0.0.0.0:81/web/app_dev.php/API/v2/brasserie/7 method: DELETE response: {"code":401,"message":"JWT Token not found"}
-
Mat authored
-
Mat authored
-
Mat authored
-
Mat authored
-
- 10 Jul, 2018 8 commits
- 09 Jul, 2018 10 commits
- 06 Jul, 2018 1 commit
-
-
Mat authored
-
- 05 Jul, 2018 7 commits