Skip to main content

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:

  1. Configure the redirect link as mobile light application

image.png

  1. Configure the redirect link as mobile portal:

image.png
But the default redirect can only configure one type, so we need to replace part of the content in the application homepage link to achieve this. The specific operation is as follows (taking WeChat Work integration mobile portal as an example):

I. Find the Application Homepage Link:

image.png

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

image.png

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:

  1. 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

  1. 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.

  2. Online URL encoding/decoding tool: http://www.jsons.cn/urlencode/

  3. WeChat Work integration and DingTalk integration reference: WeChat Work Complete Integration Solution, DingTalk Complete Integration Solution