2017 © Pedro Peláez
 

symfony-bundle wsse-authentication-bundle

a simple and easy way to implement WSSE authentication into Symfony2 applications

image

mopa/wsse-authentication-bundle

a simple and easy way to implement WSSE authentication into Symfony2 applications

  • Sunday, June 16, 2013
  • by phiamo
  • Repository
  • 3 Watchers
  • 19 Stars
  • 14,912 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 56 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Introduction

The MopaWSSEAuthentication bundle is a simple and easy way to implement WSSE authentication into Symfony2 applications, (*1)

Installation

app/autoload.php, (*2)

$loader->registerNamespaces(array(
    //other namespaces
    'Mopa' => __DIR__.'/../vendor/bundles',
  ));

app/AppKernel.php, (*3)

public function registerBundles()
{
    return array(
        //other bundles
        new Mopa\Bundle\WSSEAuthenticationBundle\MopaWSSEAuthenticationBundle(),
    );
    ...

Configuration

app/config/config.yml, (*4)

# Mopa Rackspace Cloud Files configuration
mopa_wsse_authentication:
    provider_class: Mopa\Bundle\WSSEAuthenticationBundle\Security\Authentication\Provider\WsseAuthenticationProvider
    listener_class: Mopa\Bundle\WSSEAuthenticationBundle\Security\Firewall\WsseListener
    factory_class: Mopa\Bundle\WSSEAuthenticationBundle\Security\Factory\WsseFactory

Usage example

app/config/security.yml, (*5)

nonce_dir: location where nonces will be saved (use null to skip nonce-validation) lifetime: lifetime of nonce provider: user provider for wsse, optional, if not set first user provider configured will be used, (*6)

firewalls:
    wsse_secured:
        pattern:   ^/api/.*
        wsse:
            nonce_dir: null
            lifetime: 300
            provider: my_user_provider

factories:
    - "%kernel.root_dir%/../vendor/bundles/Mopa/WSSEAuthenticationBundle/Resources/config/security_factories.yml"

Pitfalls / Already encrypted Passwords

If you are not using the Plaintext encoder, the password the user must supply is the password you get from $user->getPassword() (for plaintext, this is the same yes!) If you provide it on a https secured site for copy / writing it down, this should be a secure way! The WSSE encrypting way is secure providing even plain text passwords, so using a already precrypted password is not considered to be more insecure., (*7)

This would e.g. be the case if you are using FOSUserBundle and its user provider as provider for WSSEAuthenticationBundle, (*8)

The Versions

16/06 2013

dev-master

9999999-dev

a simple and easy way to implement WSSE authentication into Symfony2 applications

  Sources   Download

The Requires

 

authentication symfony2 wsse