QwenWork OAuth Connector Test
This ECS test service shows how a Teambition-like connector authorization flow is implemented for a custom H5 SaaS.
Connector Registration
client_id
qwenworkclient_name
QwenWorkclient type
public client, no client_secret
PKCE
S256 required
DingTalk login
configured
manual fallback
disabled
OAuth Endpoints
- Authorization:
https://qwenwork-mcp.zhengwu.work/oauth/authorize - Token:
https://qwenwork-mcp.zhengwu.work/oauth/token - UserInfo:
https://qwenwork-mcp.zhengwu.work/oauth/userinfo - DCR:
https://qwenwork-mcp.zhengwu.work/oauth/register
Redirect URI Allowlist
https://nango-cn-main-3uvzij.mulerun.cn/oauth/callbackhttps://nango.qwenwork.cn/oauth/callbackqwenwork-cn://mcp-oauth
Flow
- QwenWork opens
/oauth/authorizewithclient_id=qwenwork, exactredirect_uri,state, and PKCE challenge. - This service redirects the user to DingTalk scan-login when DingTalk credentials are configured.
- After DingTalk confirms identity, this service asks the user to approve QwenWork access.
- This service redirects QwenWork back with a one-time authorization code.
- QwenWork exchanges the code plus PKCE verifier at
/oauth/token, then calls/mcpor protected sample APIs with the bearer token.
Manual Authorization Probe
This link is for protocol debugging. Replace the state and PKCE verifier in real tests.
Start OAuth Probehttps://qwenwork-mcp.zhengwu.work/oauth/authorize?response_type=code&client_id=qwenwork&redirect_uri=qwenwork-cn%3A%2F%2Fmcp-oauth&scope=mcp%3Atest+profile+projects.read+tasks.read&state=replace-with-random-state&code_challenge=Yz13FINpx5fbMa-vmaNKBQHUH5lXnxT9kfM-Z05lW0M&code_challenge_method=S256