Skip to content
Antenna and Symfony full stack.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DependencyInjection
Resources/config
Tests
.gitignore
.travis.yml
AntennaBundle.php
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

AntennaBundle

Build Status Scrutinizer Code Quality

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
You can’t perform that action at this time.