WeChat mini program
信息
WeChat Mini Program support is available from Casdoor 1.41.0.
WeChat Mini Program does not use standard OAuth redirects, so sign-in uses the mini program’s login code sent to Casdoor instead of a redirect to the Casdoor page. Example: casdoor-wechat-miniprogram-example. See also WeChat Mini Program login.
Config: CASDOOR_HOSTNAME — the Casdoor server URL (e.g. https://door.casbin.com).
步骤1:部署Casdoor
Deploy the Casdoor server. Then:
- Confirm Casdoor is reachable and working.
- In
conf/app.conf, setorigintoCASDOOR_HOSTNAME.

Step 2: Configure the application
- In Casdoor, create an OAuth provider with type WeChat and set APPID and APPSECRET from the WeChat Mini Program admin.

- Create or edit a Casdoor application and add that WeChat provider.
信息