Migrate security and routing config to Symfony 6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9e5c70af3f
commit
2a0f079597
2 files changed
+14
-14
No files matched your search
@@ -1,5 +1,4 @@
|
|||||||
security:
|
security:
|
||||||
enable_authenticator_manager: true
|
|
||||||
# https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords
|
# https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords
|
||||||
password_hashers:
|
password_hashers:
|
||||||
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
|
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
|
||||||
@@ -27,20 +26,20 @@ security:
|
|||||||
pattern: ^/wopi
|
pattern: ^/wopi
|
||||||
provider: chill_chain_provider
|
provider: chill_chain_provider
|
||||||
stateless: true
|
stateless: true
|
||||||
guard:
|
jwt:
|
||||||
authenticators:
|
authenticator: lexik_jwt_authentication.security.jwt_authenticator
|
||||||
- lexik_jwt_authentication.jwt_token_authenticator
|
|
||||||
dav:
|
dav:
|
||||||
pattern: ^/dav
|
pattern: ^/dav
|
||||||
provider: chill_chain_provider
|
provider: chill_chain_provider
|
||||||
stateless: true
|
stateless: true
|
||||||
guard:
|
jwt:
|
||||||
authenticators:
|
authenticator: chill_doc_store.jwt_on_dav_authenticator
|
||||||
- Chill\DocStoreBundle\Security\Guard\JWTOnDavUrlAuthenticator
|
|
||||||
# this firewall is the main firewall for chill. It should be the last one in the stack,
|
# this firewall is the main firewall for chill. It should be the last one in the stack,
|
||||||
# unless you have specific needs
|
# unless you have specific needs
|
||||||
chill_main:
|
chill_main:
|
||||||
provider: chill_chain_provider
|
provider: chill_chain_provider
|
||||||
|
entry_point: form_login
|
||||||
|
user_checker: chill_security.user_checker
|
||||||
form_login:
|
form_login:
|
||||||
csrf_parameter: _csrf_token
|
csrf_parameter: _csrf_token
|
||||||
csrf_token_id: authenticate
|
csrf_token_id: authenticate
|
||||||
@@ -49,14 +48,13 @@ security:
|
|||||||
path: /logout
|
path: /logout
|
||||||
switch_user: true
|
switch_user: true
|
||||||
# end of lines added by chill-bundles recipe
|
# end of lines added by chill-bundles recipe
|
||||||
user_checker: chill_security.user_checker
|
|
||||||
|
|
||||||
# Easy way to control access for large sections of your site
|
# Easy way to control access for large sections of your site
|
||||||
# Note: Only the *first* access control that matches will be used
|
# Note: Only the *first* access control that matches will be used
|
||||||
access_control:
|
access_control:
|
||||||
# those lines are added by chill-bundles recipes, and are requires to make chill-bundles working
|
# those lines are added by chill-bundles recipes, and are requires to make chill-bundles working
|
||||||
- { path: ^/(login|logout), roles: IS_AUTHENTICATED_ANONYMOUSLY }
|
- { path: ^/(login|logout), roles: PUBLIC_ACCESS }
|
||||||
- { path: ^/public, roles: IS_AUTHENTICATED_ANONYMOUSLY }
|
- { path: ^/public, roles: PUBLIC_ACCESS }
|
||||||
- { path: ^/wopi, roles: IS_AUTHENTICATED_FULLY }
|
- { path: ^/wopi, roles: IS_AUTHENTICATED_FULLY }
|
||||||
# access for homepage, the homepage redirect admin to admin section
|
# access for homepage, the homepage redirect admin to admin section
|
||||||
- { path: ^/$, roles: [ IS_AUTHENTICATED_REMEMBERED ] }
|
- { path: ^/$, roles: [ IS_AUTHENTICATED_REMEMBERED ] }
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
controllers:
|
controllers:
|
||||||
resource: ../../src/Controller/
|
resource:
|
||||||
type: annotation
|
path: ../../src/Controller/
|
||||||
|
namespace: App\Controller
|
||||||
|
type: attribute
|
||||||
|
|
||||||
kernel:
|
kernel:
|
||||||
resource: ../../src/Kernel.php
|
resource: App\Kernel
|
||||||
type: annotation
|
type: attribute
|
||||||
Reference in new issue
Block a user