wordpress-钉钉扫码登录(Wechat Social 插件)

wordpress-钉钉扫码登录(Wechat Social 插件)
https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-23.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

扫码登录后台,避免了密码的泄露。

最初想用微信扫码登录,但需要微信公众号认证,个人无法实现(当然除了money以外)

后来就想到钉钉,上班不是微信就是钉钉,那就上钉钉吧(最主要的是任何一个api接口前期开发者不需要过多的审核流程)

有兴趣的也可以看一下——> 开发者文档 接入钉钉登录

  • 流程
    • 安装Wechat Social 插件
    • 钉钉开发者创建登录应用(获取appid及key)
    • 配置Wechat Social
    • 用户绑定钉钉

第一步,安装Wechat Social

wordpress后台,安装Wechat Social 后,直接启用。

https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-9.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

第二步,钉钉开发者创建登录应用

钉钉开发者平台 官网:https://open-dev.dingtalk.com

登录钉钉开发者平台

https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-12-1024x440.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

跳转连接到登录页面

https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-11-1024x379.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

注册企业或组织(可以随意注册,非必要认证)

https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-10.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

注册完成后,会跳转到OA页面,我们不用管,重新返回开发者网址再次点击登录,即可跳转到开发者页面。

应用开发——登录——创建扫码登录应用授权

https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-13-1024x677.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

创建app信息,回调地址是你wordpress站点地址(也可以去Wechat Social设置里面看到)

https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-18.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

如果不确定回调地址,也可以通过Wechat Social钉钉设置中看到,如下图

https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-17.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

创建完成后就可以看到appid和key,不要关闭网页,返回wordpress后台

https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-19-1024x667.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

第三步,配置Wechat Social

https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-14-1024x631.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-15.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0
https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-16.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

将钉钉开发者刚创建的appid和key粘贴到下图,保存,配置完成

https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-21-1024x462.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

第四步,绑定钉钉账号

wordpress后台,用户——编辑——绑定——“弹出钉钉二维码绑定即可”

https://qnimg.ffing.cn/wp-content/uploads/2021/04/image-22.png?imageView2/0/q/75|watermark/1/image/aHR0cHM6Ly9xbmltZy5mZmluZy5jbi9mbl9sb2dvLnBuZw==/dissolve/55/gravity/SouthEast/dx/0/dy/0

good good study, day day up!

发表评论

textsms
account_circle
email

wordpress-钉钉扫码登录(Wechat Social 插件)
扫码登录后台,避免了密码的泄露。 最初想用微信扫码登录,但需要微信公众号认证,个人无法实现(当然除了money以外) 后来就想到钉钉,上班不是微信就是钉钉,那就上钉钉吧(最主…
扫描二维码继续阅读
2021-04-02