How to authenticate on 2 different symfony2 firewalls at the same time?

▼魔方 西西 提交于 2019-12-04 04:23:22
user1759851

You might want to look here: Authenticate multiple symfony2 firewalls with one login form there's solution to similar problem there

quoted:

security:
# providers etc ...

    firewall:
        main:
            pattern: # ...
            provider: my_users
            http_basic: ~
            context: primary_auth  # new
        api:
            pattern: # ...
            provider: my_users
            http_basic: ~
            context: primary_auth  # new
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!