How to develop by faking login to test ACLs in Symfony 2

前端 未结 3 1904
被撕碎了的回忆
被撕碎了的回忆 2020-12-23 15:26

I am developing a part of a web app build on Symfony 2. Like in many apps, authentication & authorization is required. How can I continue developing, taking consideratio

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-23 16:08

    Not sure I understand your question very well but If you just want to see the application with different user role you can use the Symfony Role Switcher documented here : http://symfony.com/doc/current/book/security.html#impersonating-a-user

    So you just have to put a parameter in your url to view your app as another connected user.

    Hope it helps !

提交回复
热议问题