integrated / user-bundle
Integrated User Bundle
0.7
2017-06-06 05:47 UTC
Requires
- php: >=5.4
- doctrine/doctrine-bundle: ~1.3
- doctrine/orm: ~2.4
- integrated/content-bundle: ~0.7
- integrated/library: ~0.7
- integrated/menu-bundle: ~0.7
- symfony/symfony: ~2.8 || ~3.0
Requires (Dev)
- phpunit/phpunit: ^5.7
- squizlabs/php_codesniffer: ^2.8
This package is auto-updated.
Last update: 2024-10-28 01:06:50 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 }