jeecgboot / JeecgBoot

🔥「企业级低代码平台」前后端分离架构SpringBoot 2.x/3.x,SpringCloud,Ant Design&Vue3,Mybatis,Shiro,JWT。强大的代码生成器让前后端代码一键生成,无需写任何代码! 引领新的开发模式,引入AI模型能力 OnlineCoding->代码生成->手工MERGE,帮助Java项目解决70%重复工作,让开发更关注业务,既能快速提高效率,帮助公司节省成本,同时又不失灵活性。
http://www.jeecg.com
Apache License 2.0
40.63k stars 14.83k forks source link

钉钉登陆返回2000,页面一直在登陆中 #3112

Closed liwanyin closed 3 years ago

liwanyin commented 3 years ago
版本号:

2.4.6

问题描述:
截图&代码:

第三方登录进入render:dingtalk 2021-10-19 12:00:55.148 [http-nio-28080-exec-6] INFO o.j.modules.system.controller.ThirdLoginController:72 - 第三方登录认证地址:https://oapi.dingtalk.com/connect/qrconnect?response_type=code&appid=dingntdx2hb8acwcloeh&scope=snsapi_login&redirect_uri=http://10.0.54.253:28080/jeecgboot/sys/thirdLogin/dingtalk/callback&state=8aedcc80a7f9e33c390ceda586ffcb49 2021-10-19 12:01:21.925 [http-nio-28080-exec-7] INFO o.j.modules.system.controller.ThirdLoginController:78 - 第三方登录进入callback:dingtalk params:{"code":"60d9d8c5a1c53159bb60b2fef74be284","state":"8aedcc80a7f9e33c390ceda586ffcb49"} 2021-10-19 12:01:22.538 [http-nio-28080-exec-7] INFO o.j.modules.system.controller.ThirdLoginController:81 - {"code":2000,"data":{"gender":"UNKNOWN","nickname":"Wing","rawUserInfo":{"nick":"Wing","unionid":"qo2fvCNnFkmPfJ6oANbaSAiEiE","dingId":"$:LWCP_v1:$NT80Z/pPdCIhoEbkbq33Rg==","openid":"nFymYIGEWq2sSNndx2niiUAiEiE","main_org_auth_high_level":false},"source":"DINGTALK","token":{"expireIn":0,"openId":"nFymYIGEWq2sSNndx2niiUAiEiE","unionId":"qo2fvCNnFkmPfJ6oANbaSAiEiE"},"username":"Wing","uuid":"qo2fvCNnFkmPfJ6oANbaSAiEiE"}}

image image

友情提示(为了提高issue处理效率):

zhangdaiscott commented 3 years ago

第三方登录配置参数对吗

liwanyin commented 3 years ago

请大佬帮忙看看,我对着视频和wen d文档操作的,但是有些问题,感激不尽! image

liwanyin commented 3 years ago

钉钉的client id, client-secret, 还有agent-id都是正确的 image

liwanyin commented 3 years ago

在请问下,我按照文档配置了与钉钉集成,以及钉钉登录与分享中填了回调域名,但是点击钉钉里面的应用图标没有免登录还是跳转到项目登陆界面,需要输入用户名和密码,请问下是否我还须其他的操作呢?多谢了!

zhangdaiscott commented 3 years ago

录个视频看

zhangyinghahaha commented 2 years ago

@liwanyin 这个问题解决了吗?我也遇到了同样的问题