0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/packages/connectors/connector-wecom
Gao Sun 76fd33b7ed
feat: default user role (#5872)
* feat: default user role

* chore: add tests and changeset

* refactor: show warning for deprecated env

* chore: fix tests
2024-05-17 16:02:05 +08:00
..
src refactor: use vitest for connectors (#5562) 2024-03-28 10:21:50 +08:00
CHANGELOG.md release: version packages (#5463) 2024-04-10 21:27:24 +08:00
logo.svg feat(connector): add connector-wecom (#5411) 2024-02-28 10:23:41 +08:00
package.json feat: default user role (#5872) 2024-05-17 16:02:05 +08:00
README.md feat(connector): add connector-wecom (#5411) 2024-02-28 10:23:41 +08:00

WeCom OAuth2 connector

The custom connector for WeCom (maybe called WXwork) social sign-in.

I suggest using a different sign-in method if available. Logging in from WeCom is not user-friendly enough.

Get started

Sign in to WeCom WebUI with an admin account or click Manage the enterprise(管理企业) from the WeCom app.

In the "App Management" tab, scroll the page down and click "Create an app".

Fill in the appropriate information according to your app. Then create.

Now we have the Agent ID (NOT APPID) and Secret.

Website info

Set the things you need on this page. It would be like:

  • Allowed users: who can see this app
  • App Homepage: Your app homepage. E.g., logto.io/demo-app

Important There are three items on this page regarding the "Developer API(开发者接口)".

  1. Web Authorization and JS-SDK;
  2. Log in to via authorization by WeCom;
  3. Enterprise Trusted IP;

Fill them according to the guide of WeCom.

Maybe you should do something according to the guide of WeCom who should act according to the requirements of some others. God bless you.

Corp ID

If you are familiar with WeChat development, you may notice that the use of Corp ID is the same as APP ID.

You can find the Corp ID at the bottom of the "My Enterprise(我的企业)" tab page. It seems like ww**** .

Configure the connector

So we have the Agent ID, Secret, and Corp ID.

Let's complete the form for the connector.

You can leave the Scope field blank as it is optional. Alternatively, you can fill in snsapi_base or snsapi_privateinfo. I apologize for not testing it fully.

Save and done