igdr / token-auth-bundle
Token Auth Bundle
Installs: 48
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.3
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3
- symfony/symfony: >=2.4
This package is not auto-updated.
Last update: 2024-12-21 20:46:43 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