« Programmation PHP avec Symfony/API » : différence entre les versions
Contenu supprimé Contenu ajouté
Ligne 115 :
Il existe plusieurs bibliothèques d'authentification JWT pour Symfony, comme https://github.com/lexik/LexikJWTAuthenticationBundle.
Pour tester en shell :
<syntaxhighlight lang=bash>
TOKEN=123
curl -H 'Accept: application/json' -H "Authorization: Bearer ${TOKEN}" http://localhost
</syntaxhighlight>
== Références ==
|