integrated/user-bundle

Integrated User Bundle

Installs: 3 856

Dependents: 2

Suggesters: 0

Security: 0

Type:symfony-bundle

0.7 2017-06-06 05:47 UTC

README

TODO: write a readme file ;)

Example Security Config

Below example security config that can be used to setup a basic login support for a integrated website.

security:
    encoders:
        Integrated\Bundle\UserBundle\Model\User: sha512

    providers:
        integrated_user:
            id: integrated_user.security.provider

    firewalls:
        dev:
            pattern:    ^/(_(profiler|wdt|configurator)|css|images|js)/
            security:   false

        main:
            pattern:  ^/
            anonymous: ~
            form_login:
                csrf_token_generator: security.csrf.token_manager

                login_path:    integrated_user_login
                check_path:    integrated_user_check

            logout:
                path:   integrated_user_logout
                target: /
            remember_me:
                secret:   '%secret%'
                lifetime: 2592000 # 30 days
                path:     /					

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