Mobile Portal or Mobile Light Application Configuration Instructions
Scenario Introduction:
When integrating with DingTalk or WeChat Work, we generally set up password-free login. If you need to configure mobile light applications or mobile portals, the simplest method is to directly configure the default redirect link:
- Configure the redirect link as mobile light application

- Configure the redirect link as mobile portal:

I. Find the Application Homepage Link:

The part to be replaced is the following bold part:
https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww7a55edfe733e0a59&redirect_uri=https%3A%2F%2Fuat.guandata.com%2Fm%2F%3Fprovider%3Dwechatwork%26domain%3Ddemo%26corpId%3Dww7a55edfe733e0a59&response_type=code&scope=snsapi_base&agentid=1000002&state=mobile#wechat_redirect
II. Find the Mobile Portal Link:
Path: Application Management-Mobile-Mobile Portal Edit-Scan QR Code to View-Copy Link

For example, the link for this environment is: https://uat.guandata.com/m/portal
III. Use an online encoding tool to encode the above link:
After conversion, it becomes: https%3A%2F%2Fuat.guandata.com%2Fm%2Fportal
IV. Replace the original link with the encoded mobile portal link, becoming: https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww7a55edfe733e0a59&redirect_uri=https%3A%2F%2Fuat.guandata.com%2Fm%2Fportal%3Fprovider%3Dwechatwork%26domain%3Ddemo%26corpId%3Dww7a55edfe733e0a59&response_type=code&scope=snsapi_base&agentid=1000002&state=mobile#wechat_redirect
Actually, it just adds the portal parameter.
Other notes:
- Mobile light application parameter replacement is similar to mobile portal, for example:
The mobile light application link is: https://uat.guandata.com/m/app/tc775bb757cc343b485168c8
After encoding, it becomes: https%3A%2F%2Fuat.guandata.com%2Fm%2Fapp%2Ftc775bb757cc343b485168c8
After replacing the link, it becomes: https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww7a55edfe733e0a59&redirect_uri=https%3A%2F%2Fuat.guandata.com%2Fm%2Fapp%2Ftc775bb757cc343b485168c8%3Fprovider%3Dwechatwork%26domain%3Ddemo%26corpId%3Dww7a55edfe733e0a59&response_type=code&scope=snsapi_base&agentid=1000002&state=mobile#wechat_redirect
The additional parameter is: app%2Ftc775bb757cc343b485168c8
-
WeChat Work integration doesn't distinguish between PC and mobile, just modify the application homepage URL directly. DingTalk integration needs to distinguish between mobile and PC.
-
Online URL encoding/decoding tool: http://www.jsons.cn/urlencode/
-
WeChat Work integration and DingTalk integration reference: WeChat Work Complete Integration Solution, DingTalk Complete Integration Solution