hashnz / hawk-server-bundle
Hawk authentication bundle for Symfony
Installs: 2 587
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.4
- dflydev/hawk: 1.0.*@dev
- symfony/symfony: ~2.1
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2023-12-04 21:16:44 UTC
README
A bundle that implements HAWK authorization for Symfony.
Installation
Add to composer.json
{
"require": {
"hashnz/hawk-server-bundle": "dev-master"
}
}
You may need to allow @dev
for the underlying dflydev/hawk package:
{
"require": {
"hashnz/hawk-server-bundle": "dev-master"
"dflydev/hawk": "@dev"
}
}
Register the bundle in app/AppKernel.php
$bundles = array(
// ...
new Hashnz\HawkServerBundle\HashnzHawkServerBundle(),
);
Usage
Secure a firewall in security.yml
security:
firewalls:
hawk_secured:
pattern: ^/hawk-test
stateless: true
hawk: true