search

Home  >  Q&A  >  body text

java - shiro怎么实现免账号密码,通过验证身份码登陆并授权?

假设用户现在进行了微信授权操作,后台controller拿到了用户信息。
在controller中如何用简单的用户信息实现shiro登陆(因为用户已经通过微信授权,所以不用再进行身份验证),比如:微信用户点击进入个人首页,点击授权后,在controller中拿到了用户信息后通过shiro验证(非账号密码),实现用户免登录(或者说是授权登陆)。该怎么作?
迷茫迷茫2840 days ago936

reply all(4)I'll reply

  • 阿神

    阿神2017-04-18 10:17:49

    Why don’t you just write down the password in the background, and then the username is your authorization code...

    reply
    0
  • 黄舟

    黄舟2017-04-18 10:17:49

    Your problem is the same as mine

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 10:17:49

    Excuse me, has the problem been solved? ? ? ,,I want to do this in filter,,

    reply
    0
  • 迷茫

    迷茫2017-04-18 10:17:49

    Customized realm

    reply
    0
  • Cancelreply