Skip to content

Commit

Permalink
docs: update docs for wechat oauth provider (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacongda authored Feb 7, 2024
1 parent dffedc8 commit b01ca12
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/provider/oauth/Wechat.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The WeChat provider offers two different sets of keypairs:

- The second keypair (`Client ID 2`, `Client Secret 2`) and `Access Token` field is for the `WeChat Media Platform (微信公众平台)` and is intended for the inside-WeChat-app login scenario.`Access Token` field is the `Token` you fill in the `server configuration` of the `WeChat Media Platform (微信公众平台)`. It enables users to log in with the WeChat built-in browser inside the WeChat mobile app, which will redirect them to your `WeChat Official Account (微信公众号)` to log in. Please note that WeChat does not support logging in outside of the WeChat app in other mobile browsers or apps. This limitation is imposed by WeChat and not by Casdoor.

If you fill in the second keypair (`Client ID 2`, `Client Secret 2`), fill the `Access Token` field and enable the `Enable QR code` switch, Casdoor will ask the user to follow the WeChat official account (微信公众号) before proceeding with the login process when the user clicks on the WeChat button to log in. It's important to note that this functionality is only available in the PC login scenario because a mobile phone cannot scan the QR code by itself. When used in the mobile scenario (i.e., the WeChat built-in browser inside the WeChat mobile app), Casdoor will automatically skip this step.
If you fill in the second keypair (`Client ID 2`, `Client Secret 2`), fill the `Access Token` field and enable the `Enable QR code` switch, then you can choose to login directly using the information from the `WeChat Media Platform (微信公众平台)` after scanning the QR code, or use the information from the `WeChat Open Platform (微信开放平台)` to login, if you choose `use Wechat Open Platform to login`,after user follow the the WeChat official account (微信公众号), users will be required to scan the QR code of `WeChat Open Platform (微信开放平台)`to login. Casdoor will ask the user to follow the WeChat official account (微信公众号) before proceeding with the login process when the user clicks on the WeChat button to login. It's important to note that this functionality is only available in the PC login scenario because a mobile phone cannot scan the QR code by itself. When used in the mobile scenario (i.e., the WeChat built-in browser inside the WeChat mobile app), Casdoor will automatically skip this step.

:::tip

Expand Down
Binary file modified static/img/providers/OAuth/wechat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b01ca12

Please sign in to comment.