https://github.com/tsl0922/sentry-wxwork
Plugin for Sentry which allows sending notification and SSO Login via WeChat Work.
https://github.com/tsl0922/sentry-wxwork
sentry sentry-integration sentry-plugin wechat wxwork
Last synced: 11 months ago
JSON representation
Plugin for Sentry which allows sending notification and SSO Login via WeChat Work.
- Host: GitHub
- URL: https://github.com/tsl0922/sentry-wxwork
- Owner: tsl0922
- License: mit
- Created: 2020-07-10T09:43:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-03T06:23:15.000Z (about 5 years ago)
- Last Synced: 2025-03-18T08:21:33.540Z (12 months ago)
- Topics: sentry, sentry-integration, sentry-plugin, wechat, wxwork
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 30
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sentry WeChat Work [](https://pypi.python.org/pypi/sentry-wxwork) [](https://pepy.tech/project/sentry-wxwork)
Plugin for [Sentry](https://github.com/getsentry/sentry) which allows sending notification and SSO Login via [WeChat Work](https://work.weixin.qq.com).
## Installation
> **NOTE:** sentry 20.x removed support for legacy plugins, so this plugin only works for sentry 9.x-10.x.
### Prepare
- Install the plugin:
- [onpremise](https://github.com/getsentry/onpremise): put `sentry-wxwork` to `requirements.txt`
- manual: `pip install sentry-wxwork`
- Obtain required config from WeChat Work admin console ([Read Me](https://work.weixin.qq.com/api/doc/90000/90135/90664)).
### Notification
On (Legacy) Integrations page, find `WeChat Work`, enable and configure it.
### SSO Login
Add the following settings to your `sentry.conf.py`:
```python
WXWORK_CORP_ID = ''
WXWORK_SECRET = ''
WXWORK_AGENT_ID = ''
```
or, if you prefer setting it via environment variables:
```python
if 'WXWORK_CORP_ID' in os.environ:
WXWORK_CORP_ID = env('WXWORK_CORP_ID')
WXWORK_SECRET = env('WXWORK_SECRET')
WXWORK_AGENT_ID = env('WXWORK_AGENT_ID')
```