メインコンテンツにスキップ

WeCom OAuth

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

Casdoor field説明
Sub type内部またはサードパーティ
Methodサイレントまたはノーマル
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.

情報
  • 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.