Integrate WeCom authentication
About WeCom
WeCom authentication is an identity verification method based on WeCom (Enterprise WeChat), supporting OAuth 2.0 authorization, QR code login, and enterprise identity binding, enabling secure and convenient enterprise user login and management.
How to configure

Navigate to System settings > Authentication > WeCom.
In the WeCom field, check to enable WeCom authentication.
In the Corporation ID field, type the WeCom corporation ID. Uniquely identifies the enterprise in WeCom, and all API requests must include this ID.
In the App agent ID field, type the WeCom app agent ID. Used to identify a specific application in WeCom, with each application having a unique Agent ID.
In the App secret field, type the WeCom app secret. Used to authenticate the application and obtain an access token for calling the WeCom API.
In the User attribute field, type the user attribute mapping. The key represents the JumpServer user attribute name (available options: name, username, email, phone, comment), while the value corresponds to the WeCom user attribute name.
{
"name": "alias",
"username": "userid",
"email": "extattr.attrs[2].value"
}
In the Organization field, after authentication and creation, the user will be added to the selected organization.
Click Submit.
Test WeCom connection

Navigate to System settings > Authentication > WeCom.
Scroll to the bottom of the page.
Click Test.
JumpServer WeCom URLs
https://jumpserver.example.com/core/auth/wecom/qr/login/
https://jumpserver.example.com/core/auth/wecom/qr/login/callback/
https://jumpserver.example.com/core/auth/wecom/oauth/login/
https://jumpserver.example.com/core/auth/wecom/oauth/login/callback/