2017 © Pedro Peláez
 

library silex-x509

X.509 Authentication Provider for Silex

image

mach/silex-x509

X.509 Authentication Provider for Silex

  • Saturday, August 22, 2015
  • by tiraeth
  • Repository
  • 0 Watchers
  • 4 Stars
  • 24 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

X.509 Authentication Security Provider

Build Status, (*1)

The X509AuthenticationProvider provides a X.509 Authentication Listener and bootstraps it so you can easily implement X.509 Certificate authentication in your Silex application., (*2)

Parameters

  • silex.x509.client_key: (optional) Header key with Client ID (default: SSL_CLIENT_S_DN)
  • silex.x509.credentials_key: (optional) Header key with Credentials (default: SSL_CLIENT_S_DN_Email)

Registering

use Silex\Application;
use Silex\Provider\SecurityServiceProvider;
use Mach\Silex\X509\Provider\X509AuthenticationProvider;

$app = new Application();

$app->register(new SecurityServiceProvider(), [...]);

$app->register(new X509AuthenticationProvider());

Example firewall configuration

$app->register(new SecurityServiceProvider(), array(
    'security.firewalls' => array(
        'x509_cert' => array(
            'pattern' => '^.*$',
            'x509' => true,
            'users' => array(
                'dennis@example.com' => array('ROLE_USER', null),
                'admin@example.com'  => array('ROLE_ADMIN', null),
            ),
        ),
    ),
    'security.access_rules' => array(
        array('^/admin', 'ROLE_ADMIN'),
    ),
    'security.role_hierarchy' => array(
        'ROLE_ADMIN' => array('ROLE_USER'),
    ),
));

The Versions

22/08 2015

dev-master

9999999-dev http://github.com/tiraeth/silex-x509

X.509 Authentication Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

22/08 2015

1.0.3

1.0.3.0 http://github.com/tiraeth/silex-x509

X.509 Authentication Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

22/08 2015

dev-silex2

dev-silex2 http://github.com/tiraeth/silex-x509

X.509 Authentication Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

22/08 2015

2.0.1

2.0.1.0 http://github.com/tiraeth/silex-x509

X.509 Authentication Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

22/08 2015

2.0

2.0.0.0 http://github.com/tiraeth/silex-x509

X.509 Authentication Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

22/08 2015

1.0.2

1.0.2.0 http://github.com/tiraeth/silex-x509

X.509 Authentication Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

22/08 2015

1.0.1

1.0.1.0 http://github.com/tiraeth/silex-x509

X.509 Authentication Provider for Silex

  Sources   Download

MIT

The Requires

 

The Development Requires

03/09 2013