WeChat Auth

License Latest Stable Version License

Allow users to log in with WeChat. User can also link or unlink it's WeChat account (in user settings).


Installation

  1. Use Bazaar or install manually with composer:
composer require nomiscz/flarum-ext-auth-wechat
  1. Register new app https://open.weixin.qq.com/ and get APP ID and Secret for you application
    ⚠️ Callback domain name info: http://www.programmersought.com/article/69151622340/, don't add http/https protocol header to domain string.
  2. Enable extension in admin page and set APP ID and Secret in settings.

Updating

composer update nomiscz/flarum-ext-auth-wechat
php flarum cache:clear

Additional information

🔎 Info: For older versions of the Flarum BETA:

  • 0.1.0-beta.14 use version 0.1.4
    composer require nomiscz/flarum-ext-auth-wechat:0.1.4

🐛 Known issues

🔎 Error: Flarum encountered a boot error (FastRoute\BadRouteException) Static route "/auth/wechat" is shadowed by previously defined variable route "/auth/([^/]+)" for method "GET"

🔎 Error: Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.

  • 👉 Update extension / make sure you're using correct version of the extension for your Flarum version

Report issue

Pollux changed the title to WeChat Auth .

which AppID and Secret should i use? the one of my 移动应用 or the one i get from 接口号测试.

And when i try to use the function, it pops up 加载页面时出错。

    🐛 0.1.1

    • Change min. OAuth2-WeChat package version

    Updating

    composer update nomiscz/flarum-ext-auth-wechat
    php flarum cache:clear

      Fixed, please update.
      @thekeon Ask @yhuchs what key he used (then I'll add it to the instructions).

      thekeon You should apply for a website application on WeChat's open platform.网站应用API

      NomisCZ I cannot update to the new version. Are you sure you submitted the code?

        NomisCZ OK, I tried to reinstall it.
        I upgraded it successfully?🤣
        composer require nomiscz/oauth2-wechat
        Why?