-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use new authenticator manager (#182)
- Loading branch information
Showing
14 changed files
with
314 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/MembersBundle/Resources/config/packages/security_auth_manager.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
security: | ||
|
||
enable_authenticator_manager: true | ||
|
||
# symfony default is set to "true". | ||
# you may want to keep it "true" but keep in mind that this hide meaningful exceptions like "acount is disabled" | ||
# instead the BadCredentialsException will be thrown | ||
hide_user_not_found: false | ||
|
||
providers: | ||
|
||
# [...] other providers | ||
|
||
members: | ||
id: MembersBundle\Security\UserProvider | ||
|
||
firewalls: | ||
|
||
# [...] other firewalls | ||
|
||
members_fe: | ||
pattern: ^/(?!(admin)($|/)).*$ | ||
provider: members | ||
entry_point: form_login | ||
form_login: | ||
login_path: members_user_security_login | ||
check_path: members_user_security_check | ||
enable_csrf: true | ||
logout: | ||
path: members_user_security_logout | ||
invalidate_session: false | ||
target: / | ||
user_checker: MembersBundle\Security\UserChecker | ||
|
||
access_control: | ||
|
||
# [...] other access controls | ||
|
||
- { path: ^/_locale/members/login$, role: PUBLIC_ACCESS } | ||
- { path: ^/_locale/members/register, role: PUBLIC_ACCESS } | ||
- { path: ^/_locale/members/resetting, role: PUBLIC_ACCESS } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/MembersBundle/Resources/config/security_authenticator_manager.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
services: | ||
members.security.password_hasher_factory: | ||
class: Pimcore\Security\Hasher\Factory\UserAwarePasswordHasherFactory | ||
arguments: | ||
- Pimcore\Security\Hasher\PasswordFieldHasher | ||
- ['password'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
services: | ||
MembersBundle\Security\Encoder\Factory\UserAwareEncoderFactory: | ||
arguments: | ||
$className: 'Pimcore\Security\Encoder\PasswordFieldEncoder' | ||
$arguments: ['password'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.