2017 © Pedro Peláez
 

library silex-wsse

Full WSSE authentication for silex projects based on Symfony2 documentation

image

guigzz/silex-wsse

Full WSSE authentication for silex projects based on Symfony2 documentation

  • Sunday, March 20, 2016
  • by guigzz
  • Repository
  • 1 Watchers
  • 2 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Silex WSSE authentication

This library provides an implementation of WSSE authentication based on the Symfony2 documentation., (*1)

Installation

Composer

"require": {
    "guigzz/silex-wsse": "~0.1.0"
}

Usage

  • Register the Guigzz\Wsse\WsseAuthServiceProvider
  • Pass you own User provider to the Wsse provider
  • Use it in your security firewall config
  • You are done!

A basic config example would look like this:, (*2)

$app->register(new Guigzz\Wsse\WsseAuthServiceProvider(), array(
    'wsse.security_dir'         => __DIR__ . '/../cache/security',
    'wsse.valid_time_window'    => 300,
    'wsse.user'                 => $app->share(function ($app) { return $app['dao.user']; })
));

And use it in your security firewall like this:, (*3)

$app['security.firewalls'] = array(
    'api'   => array(
        'pattern'   => '^/api/',
        'stateless' => true,
        'wsse'      => true,
    )
);

Configuration

  • 'wsse.security_dir' (optional): where to store auth cache infos (default to your-app-root-dir/cache/security)
  • 'wsse.valid_time_window' (optional): time in seconds of a WSSE validation window (default to 300s). For more infos, please read the Symfony2 documentation about Wsse.
  • 'wsse.user' (mandatory): your app's user provider, so as to authenticate incoming requests.

License

This project is under the MIT License., (*4)

The Versions

20/03 2016

dev-master

9999999-dev https://github.com/guigzz/silex-wsse

Full WSSE authentication for silex projects based on Symfony2 documentation

  Sources   Download

MIT

The Requires

 

by Guillaume Sallaber

api authentication auth silex webservice wsse stateless

20/03 2016

0.1.0

0.1.0.0 https://github.com/guigzz/silex-wsse

Full WSSE authentication for silex projects based on Symfony2 documentation

  Sources   Download

MIT

The Requires

 

by Guillaume Sallaber

api authentication auth silex webservice wsse stateless