« JWT SPA symfony exercice pratique » : différence entre les versions

Ligne 301 : Ligne 301 :


===== security.yaml =====
===== security.yaml =====
<pre>
<syntaxhighlight lang="yaml" line>
security:
security:
   firewalls:
   firewalls:
Ligne 311 : Ligne 311 :
         authenticators:
         authenticators:
           - App\Service\Authentication\JWTAndSecurityCookieAuthenticator
           - App\Service\Authentication\JWTAndSecurityCookieAuthenticator
</pre>
</syntaxhighlight>


===== JWTAndSecurityCookieAuthenticator =====
===== JWTAndSecurityCookieAuthenticator =====