2017 © Pedro Peláez
 

symfony-bundle security-auth-form-bundle

The DCSSecurityAuthFormBundle provides an authentication system using the login form

image

dcs/security-auth-form-bundle

The DCSSecurityAuthFormBundle provides an authentication system using the login form

  • Saturday, December 3, 2016
  • by damianociarla
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Build Status Coverage Status, (*1)

DCSSecurityAuthFormBundle

This bundle provides a login form for the DCSSecurityCoreBundle., (*2)

The DCSSecurityAuthFormBundle uses the dcs_security.core.authentication.provider service to implement a custom security firewall called dcs_form., (*3)

Installation

Prerequisites

This bundle requires DCSSecurityCoreBundle., (*4)

Require the bundle

Run the following command:, (*5)

$ composer require dcs/security-auth-form-bundle "~1.0@dev"

Composer will install the bundle to your project's vendor/dcs/security-auth-form-bundle directory., (*6)

Enable the bundle

Enable the bundle in the kernel:, (*7)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new DCS\Security\Auth\FormBundle\DCSSecurityAuthFormBundle(),
        // ...
    );
}

Configure your application's security.yml

In order for Symfony's security component to use the DCSSecurityAuthFormBundle, you must tell it to do so in the security.yml file. Below is a minimal example of the configuration necessary to use this bundle in your application:, (*8)

security:
    encoders:
        DCS\User\CoreBundle\Model\User: bcrypt

    role_hierarchy:
        ROLE_ADMIN: ROLE_USER

    providers:
        dcs_user:
            id: dcs_security.core.provider.user

    firewalls:
        main:
            pattern: ^/
            dcs_form:
                provider: dcs_user
                csrf_token_generator: security.csrf.token_manager
                login_path: dcs_security_login
                check_path: dcs_security_login_check
            logout:
                path: dcs_security_logout
                target: /
            anonymous: ~

    access_control:
        - { path: ^/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker., (*9)

The Versions

03/12 2016

dev-master

9999999-dev

The DCSSecurityAuthFormBundle provides an authentication system using the login form

  Sources   Download

MIT

The Requires

 

The Development Requires

form security login dcs