Files
symfony-flex-recipes/symfony.security-bundle.5.1.json
github-action botandgithub-action bot d66972e1ac Update Flex endpoint
2021-09-23 15:02:48 +00:00

50 lines
2.2 KiB
JSON

{
"manifests": {
"symfony/security-bundle": {
"manifest": {
"bundles": {
"Symfony\\Bundle\\SecurityBundle\\SecurityBundle": [
"all"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
},
"files": {
"config/packages/security.yaml": {
"contents": [
"security:",
" # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers",
" providers:",
" users_in_memory: { memory: null }",
" firewalls:",
" dev:",
" pattern: ^/(_(profiler|wdt)|css|images|js)/",
" security: false",
" main:",
" anonymous: true",
" lazy: true",
" provider: users_in_memory",
"",
" # activate different ways to authenticate",
" # https://symfony.com/doc/current/security.html#firewalls-authentication",
"",
" # https://symfony.com/doc/current/security/impersonating_user.html",
" # switch_user: true",
"",
" # Easy way to control access for large sections of your site",
" # Note: Only the *first* access control that matches will be used",
" access_control:",
" # - { path: ^/admin, roles: ROLE_ADMIN }",
" # - { path: ^/profile, roles: ROLE_USER }",
""
],
"executable": false
}
},
"ref": "0a4bae19389d3b9cba1ca0102e3b2bccea724603"
}
}
}