Zum Hauptinhalt springen

WeCom OAuth

WeCom supports OAuth so users can sign in from the WeCom client. You can use internal or third-party applications.

Casdoor fieldBeschreibung
Sub typeIntern oder Drittanbieter
MethodStill oder Normal
Client IDEnterprise CorpID
Client secretEnterprise CorpSecret
Agent IDApplication AgentId
Scopesnsapi_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.