symfony-bundle hmac-bundle
Symfony HMAC Bundle adds a SecurityListenerFactor which provide a hmac authentication for configured firewall
ibrows/hmac-bundle
Symfony HMAC Bundle adds a SecurityListenerFactor which provide a hmac authentication for configured firewall
- Thursday, August 27, 2015
- by ibrows
- Repository
- 4 Watchers
- 2 Stars
- 128 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 1 Open issues
- 2 Versions
- 88 % Grown
IbrowsHmacBundle
, (*1)
Ibrows HMAC Bundle adds a SecurityListenerFactor which provide a hmac authentication for configured firewall
This is a recommend way to sign and verify RESTful Web API requests, (*2)
Install & setup the bundle
-
Add IbrowsHmacBundle in your composer.json:, (*3)
{
"require": {
"ibrows/hmac-bundle": "~1.0",
}
}
-
Now tell composer to download the bundle by running the command:, (*4)
bash
$ php composer.phar update ibrows/hmac-bundle
, (*5)
-
Add the bundle to your AppKernel
class, (*6)
php
// app/AppKernerl.php
public function registerBundles()
{
$bundles = array(
// ...
new \Ibrows\HmacBundle\IbrowsHmacBundle(),
// ...
);
// ...
}
, (*7)
-
Sample Configuration of your security.yml, (*8)
yml
security:
firewalls:
api:
pattern: ^/api
stateless: true
anonymous: ~
provider: api_provider
ibrows_hmac:
authentication_provider_key: me
access_control:
- { path: ^/api/, roles: ROLE_API }
encoders:
Symfony\Component\Security\Core\User\User: plaintext
providers:
api_provider:
memory:
users:
test:
password: test
roles: ['ROLE_API']
, (*9)
dev-master
9999999-dev
http://www.ibrows.ch
Symfony HMAC Bundle adds a SecurityListenerFactor which provide a hmac authentication for configured firewall
Sources
Download
MIT
The Requires
The Development Requires
security
hmac
securitylistenerfactor
symonfy2
1.0.0
1.0.0.0
http://www.ibrows.ch
Symfony HMAC Bundle adds a SecurityListenerFactor which provide a hmac authentication for configured firewall
Sources
Download
MIT
The Requires
The Development Requires
security
hmac
securitylistenerfactor
symonfy2