igdr/token-auth-bundle

There is no license information available for the latest version (dev-master) of this package.

Token Auth Bundle

Installs: 48

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-master 2016-06-06 14:11 UTC

This package is not auto-updated.

Last update: 2022-09-17 08:33:49 UTC


README

Installation

Add the bundle to your composer.json:

composer require igdr/token-auth-bundle

Then add the IgdrEmployeeBundle to your application kernel:

// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Igdr\Bundle\TokenAuthBundle\IgdrTokenAuthBundle(),
        // ...
    );
}

config.yml

doctrine:
    orm:
        ....
        resolve_target_entities:
            Symfony\Component\Security\Core\User\UserInterface: App\Bundle\UserBundle\Entity\User

securiry.yml

security:
    firewalls:
        api_token_secured:
            pattern:  ^/api/.*
            stateless:    true
            api_token: true
            anonymous: true

console: php app/console doctrine:schema:update --force