dtt5830659 2016-01-20 15:00
浏览 20
已采纳

用户未经过身份验证但在此处

I authenticate users from a database through my own login form. Everything seems to work fine but when, after entering the good username and the good password, I arrive on the home page, I can see, in Symfony toolbar, that the user is not really authenticated (it is yellow, I have the array of roles, the username and Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken class) but authenticated is NO.

What do I miss to finish this authentication ?

Thank you

  • 写回答

1条回答 默认 最新

  • douchunjing6587 2016-01-20 16:21
    关注

    I found it. Maybe it can help someone.

    To fully authenticate the use you have some rules to add access_control in the secureity.yml file and everything is fine like:

    - { path: ^/, roles: ROLE_USER }
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 基于作物生长模型下,有限水资源的最大化粮食产量的资源优化模型建立
  • ¥20 关于变压器的具体案例分析
  • ¥15 生成的QRCode圖片加上下載按鈕
  • ¥15 板材切割优化算法,数学建模,python,lingo
  • ¥15 科来模拟ARP欺骗困惑求解
  • ¥100 iOS开发关于快捷指令截屏后如何将截屏(或从截屏中提取出的文本)回传给本应用并打开指定页面
  • ¥15 unity连接Sqlserver
  • ¥15 图中这种约束条件lingo该怎么表示出来
  • ¥15 VSCode里的Prettier如何实现等式赋值后的对齐效果?
  • ¥20 keepalive配置业务服务双机单活的方法。业务服务一定是要双机单活的方式