Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Security Auth Form Bundle Laravel Package

dcs/security-auth-form-bundle

View on GitHub
Deep Wiki
Context7

Build Status Coverage Status

DCSSecurityAuthFormBundle

This bundle provides a login form for the DCSSecurityCoreBundle.

The DCSSecurityAuthFormBundle uses the dcs_security.core.authentication.provider service to implement a custom security firewall called dcs_form.

Installation

Prerequisites

This bundle requires DCSSecurityCoreBundle.

Require the bundle

Run the following command:

$ 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.

Enable the bundle

Enable the bundle in the kernel:

<?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:

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament