cosmonova-rnd / jwt-guard
Guard JWT Authenticator for Symfony
1.1.0
2018-05-17 06:56 UTC
Requires
- cosmonova-rnd/jwt: ^0.8.0
- symfony/framework-bundle: ~3.4|^4
- symfony/security-bundle: ~3.4|^4
This package is not auto-updated.
Last update: 2025-03-30 08:25:58 UTC
README
Installing
- Install package using composer
composer require cosmonova-rnd/jwt-guard
Configuring
-
Configure environment variables
JWT_PUBLIC_KEY
andJWT_PASSPHRASE
with public key and passphrase -
Add to your firewall new authenticator
example:
security: main: anonymous: ~ guard: authenticators: - CosmonovaRnD\JWTGuard\Security\JwtAuthenticator
Usage
Use symfony UserInterface to get authenticated user
@ Cosmonova | Research & Development