-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.md~
executable file
·25 lines (20 loc) · 980 Bytes
/
README.md~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
This is a bundles for entity autentication in Symfony 2.4.4.
The only thing you need to do if want to try it is make it run as a bundle in your symfony project and make the necesary changes in your app/config/security.yml file.
Ex:
security:
encoders:
#Symfony\Component\Security\Core\User\User: plaintext
Acme\UserBundle\Entity\User: #plaintext
algorithm: bcrypt
role_hierarchy:
ROLE_ADMIN: ROLE_USER
ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
providers:
#in_memory:
# memory:
# users:
# user: { password: userpass, roles: [ 'ROLE_USER' ] }
# admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
administrators:
entity: { class: AcmeUserBundle:User, property: username }
The entity User.php is for the autentication and AutenUsers.php is for the CRUD operations. Both are join to the same table.