Aws4AuthBundle
, (*1)
Installation
Installation is a quick 5 steps process:, (*2)
- Download AWS4AuthBundle
- Enable the Bundle in your Kernel
- Extend your model class
- Configure your application's security.yml
- Configure the AWS4AuthBundle
Step 1: Install AWS4AuthBundle
The preferred way to install this bundle is via Composer.
Check on Packagist the version you want to install and add it to your composer.json
:, (*3)
``` js
{
"require": {
// ...
"pculka/aws4-auth-bundle": "dev-master"
}
}, (*4)
### Step 2: Enable the Bundle in your Kernel
To enable the bundle in the kernel, just add it to your `registerBundles()` function:
``` php
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new PC\Aws4AuthBundle\PCAws4AuthBundle(),
);
}
Step 3: Extend your model class
The bundle provides a security layer. This layer works as a sole authentication provider and cannot be chained!, (*5)
Creation of a chainable interface is still to be done and is planned for a future release., (*6)
security:
firewalls:
aws4fw:
pattern: ^/amazon-like-api/
stateless: true
aws4auth: true
# app/config/config.yml
pc_aws4_auth:
user_class: \Acme\Bundle\Entity\User