flint / antenna-bundle
Symfony and Antenna
Installs: 104
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- flint/antenna: ~1.2
- symfony/framework-bundle: ~2.7
- symfony/security-bundle: ~2.7
Requires (Dev)
- matthiasnoback/symfony-config-test: ~1.2
- symfony/finder: ~2.7
This package is auto-updated.
Last update: 2024-11-29 04:50:34 UTC
README
Makes it easier to integrate Antenna (and through it JWT) authentication with your Symfony project.
Install
composer require flint/antenna-bundle
class AppKernel extends \Symfony\Component\HttpKernel\Kernel { public function registerBundles() { // ... $bundles[] = new Flint\Bundle\AntennaBundle\AntennaBundle(); // ... } }
antenna: secret: your-shared-secret
Usage
# security.yml security: providers: in_memory: memory: users: henrikbjorn: password: my-unique-password roles: 'ROLE_USER' firewalls: token_exchange: pattern: ^/auth simple-preauth: provider: in_memory authenticator: antenna.username_password_authenticator web_token: pattern: ^/api simple-preauth: provider: in_memory authenticator: antenna.token_authenticator