2017 © Pedro Peláez
 

symfony-bundle aws4-auth-bundle

Allows HTTP requests to check for AWS4 signature

image

pculka/aws4-auth-bundle

Allows HTTP requests to check for AWS4 signature

  • Thursday, April 21, 2016
  • by pculka
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Aws4AuthBundle

Build Status, (*1)

Installation

Installation is a quick 5 steps process:, (*2)

  1. Download AWS4AuthBundle
  2. Enable the Bundle in your Kernel
  3. Extend your model class
  4. Configure your application's security.yml
  5. 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

Step 4: Configure your application's security.yml

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

Step 5: Configure the AWS4AuthBundle

# app/config/config.yml

pc_aws4_auth:
    user_class: \Acme\Bundle\Entity\User

The Versions