Experimental project

This is a sandbox project, which contains experimental code for developer use only.

使用Wechat模块创建微信服务号时,若用户已关注并绑定了Drupal账号后,当期在微信服务号的link菜单中跳转到一个需要登录用户才能访问的页面时,会提醒403 access denied。此时,可拿到用户微信账号的OpenID(通过静默授权scope=snsapi_base,详见 https://mp.weixin.qq.com/wiki/17/c0f37d5704f0b64713d5d2c37b468d75.html ),然后判断其是否已经和Drupal中的某个账户已绑定,若已经绑定,则用代码将其登入,就不会显示403禁止访问了。这样就有了更好的用户体验。
启用后设置方法:访问 admin/config/system/site-information 在Default 403 (access denied) page里填写r4032wechatlogin。此模块代码绝大部分都是基于r4032login的。

AttachmentSize
r4032wechatlogin.zip12.93 KB

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Integrations, Access control
  • Created by fishfree on , updated