2017 © Pedro Peláez
 

library caparica-bundle

a symfony bundle to help secure your REST api with signed requests

image

francodacosta/caparica-bundle

a symfony bundle to help secure your REST api with signed requests

  • Sunday, October 5, 2014
  • by francodacosta
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,224 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

Build Status Total Downloads Latest Stable Version, (*1)

Getting started with Caparica Bundle

Instalation

1. Download CaparicaBundle using composer
2. Enable the Bundle
3. add a client
4. Configure your controller

Step1: Download CaparicaBundle using composer

Add CaparicaBundle by running the command:, (*2)

``` bash $ php composer.phar require francodacosta/caparica-bundle '~1.0', (*3)


### Step 2: Enable the bundle Enable the bundle in the kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Francodacosta\CaparicaBundle\FrancodacostaCaparicaBundle(), ); }

Step 3: Configure a client

So that the server can verify the client signature it needs to know the client/api id and secret, (*4)

If using the YamlClientProvider edit the file : app/config/caparica.yml, (*5)


client_alias: code: "the client code" secret: "the client api secret"

add the following to your app/config.yml file, (*6)

francodacosta_caparica:
    client_provider_id: francodacosta.caparica.client.provider.yaml

Step 4: Configure your controller

Make sure you controller implements the Francodacosta\CaparicaBundle\Controller\CaparicaControllerInterface. The Francodacosta\CaparicaBundle\Controller\CaparicaController extends the Symfony controller and has some handy methods., (*7)

and that's it all controller actions accessed via a route will have to be signed, (*8)

The Versions

05/10 2014

dev-master

9999999-dev https://github.com/francodacosta/caparica-bundle

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest hmac secure

05/10 2014

1.0

1.0.0.0 https://github.com/francodacosta/caparica-bundle

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest hmac secure

18/09 2014

0.1.1

0.1.1.0

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest hmac secure

24/03 2014

0.1.0

0.1.0.0

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest hmac secure

21/03 2014

0.0.10

0.0.10.0

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest hmac secure

21/03 2014

0.0.9

0.0.9.0

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest hmac secure

18/03 2014

0.0.8

0.0.8.0

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest hmac secure

20/12 2013

0.0.6

0.0.6.0

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

api rest hmac secure

20/12 2013

0.0.5

0.0.5.0

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

api rest hmac secure

16/12 2013

0.0.4p3

0.0.4.0-patch3

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

api rest hmac secure

16/12 2013

0.0.4p2

0.0.4.0-patch2

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

api rest hmac secure

16/12 2013

0.0.4p1

0.0.4.0-patch1

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

api rest hmac secure

16/12 2013

0.0.4

0.0.4.0

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

api rest hmac secure

16/12 2013

0.0.3

0.0.3.0

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

api rest hmac secure

16/12 2013

0.0.2

0.0.2.0

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

api rest hmac secure

13/12 2013

0.0.1

0.0.1.0

a symfony bundle to help secure your REST api with signed requests

  Sources   Download

MIT

The Requires

 

api rest hmac secure