symfony - Authentication request not working -
i tried set authentication process, works fine, when use memory providers such as:
encoders: symfony\component\security\core\user\user: algorithm: bcrypt cost: 12 providers: in_memory: memory: users: ryan: password: $2a$12$lcy0mefviec3typhv9snnuzofyr2p/axigoqjeds4am4jwhnz/jl roles: 'role_user' admin: password: $2a$12$lcy0mefviec3typhv9snnuzofyr2p/axigoqjeds4am4jwhnz/j2 roles: 'role_admin'
when try use entity providers (in security.yml) such as:
security: encoders: appbundle\model\entity\user: bcrypt providers: database_users: entity: { class: appbundle\model\entity\user, property: username } firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false default: anonymous: ~ http_basic: ~ form_login: login_path: /login check_path: /login_check access_control: # require role_admin /admin* - { path: ^/admin, roles: role_admin }
following error shows: authentication request not processed due system problem.
Comments
Post a Comment