PHPackages                             reen/symfony-stack-security - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. reen/symfony-stack-security

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

reen/symfony-stack-security
===========================

A Symfony security provider for STACK compatibility.

0.1.0(12y ago)013[1 issues](https://github.com/reenl/symfony-stack-security-bundle/issues)MITPHPPHP &gt;=5.3.3

Since Jan 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/reenl/symfony-stack-security-bundle)[ Packagist](https://packagist.org/packages/reen/symfony-stack-security)[ RSS](/packages/reen-symfony-stack-security/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

A symfony security provider for STACK
=====================================

[](#a-symfony-security-provider-for-stack)

This project contains a simple bundle that enables you to use STACK authentication middlewares.

Example
-------

[](#example)

In order to secure the default Acme bundle with stack you have to change the `secured_area` within `security.yml`.

It should look like this:

```
secured_area:
    pattern:    ^/demo/secured/
    stack_token: ~
    logout:
        path:   _demo_logout
        target: _demo
    stack_challenge: ~

```

Note that there are 2 stack authenticators given. `stack_token` searches the request for a token, when it is found it will ask the security provider (default in\_memory) to find the user and store it in the security context.

The other authenticator is `stack_challenge` it delegates authentication to the STACK middlewares.

If you like to do a quick test you can alter app\_dev.php and make it look like this to authenticate as `user`.

```
