WeCom OAuth
WeCom supports OAuth so users can sign in from the WeCom client. You can use internal or third-party applications.
| Casdoor field | Beschreibung |
|---|---|
| Sub type | Intern oder Drittanbieter |
| Method | Still oder Normal |
| Client ID | Enterprise CorpID |
| Client secret | Enterprise CorpSecret |
| Agent ID | Application AgentId |
| Scope | snsapi_userinfo (default) or snsapi_privateinfo |
Scope
snsapi_userinfo— Returns basic profile info. Email is not available with this scope.snsapi_privateinfo— Requests additional user data including the email address. Requires the WeCom app to have the member sensitive information permission granted by the enterprise admin.
Use snsapi_privateinfo if you need to populate the user's email from WeCom during OAuth sign-in.
Info
- Silent: User clicks the link and is redirected to
redirect_URI?code=CODE&state=STATE. - Normal: A consent page is shown; after the user authorizes, redirect to
redirect_uri?code=CODE&state=STATE.
See WeCom OAuth.
Internal apps: Internal Application.
Third-party apps: Third-Party Application.