Add WeCom as an OAuth provider
This guide explains how to let users sign in to Casdoor from the WeCom (WeChat Work) client. You can connect an internal application or a third-party application of WeCom.
Learning outcomes
- Choose the sub type, the method, and the scope.
- Add WeCom as an OAuth provider in Casdoor.
What you need
- A WeCom enterprise and an application in it. See Internal applications or Third-party applications.
- Administrator access to the Casdoor admin console
Add the provider in Casdoor
-
In the Casdoor admin console, go to Identity > Providers and add a provider.
-
Set Category to
OAuthand Type toWeCom. -
Fill in the fields:
Casdoor field Description Sub type Internal or Third-party Method Silent or Normal Client ID Enterprise CorpID Client secret Enterprise CorpSecret Agent ID Application AgentId Scope snsapi_userinfo(default) orsnsapi_privateinfo -
Save the provider.