Category: security

Symfony: "Array to string conversion" error on Roles management

I’ve started exploring security on Symfony 4.4.7. User creation works and I can see its params saved on DB: MariaDB [(symfony)]> desc user; +———-+————–+——+—–+———+—————-+ | Field | Type | Null | Key | Default | Extra | +———-+————–+——+—–+———+—————-+ | id…

How to ensure that a request comes from my webextension and login system

I develop an url shortener service: https://urlr.me and a webextension for it: https://addons.mozilla.org/fr/firefox/addon/urlr/. The source code of the webextension is open source and available on github. I have two main questions : 1 / Today, to know if the request…

hi everyone , i actually have a problem Unable to find the controller for path "/api/login_check". The route is wrongly configured.]

Unable to find the controller for path “/api/login_check”. The route is wrongly configure***d. ***security: encoders: FOSUserBundleModelUserInterface: bcrypt role_hierarchy: ROLE_ADMIN: ROLE_USER ROLE_SUPER_ADMIN: ROLE_ADMIN # https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers providers: fos_userbundle: id: fos_user.user_provider.username firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false login: pattern: ^/api/login stateless: true anonymous:…