oncall-engine/engine/apps/auth_token/models
Vadim Stepanov c921674471
Improve plugin authentication (#1995)
# What this PR does
Handle different failing authentication scenarios (e.g. when token is
invalid or instance context is not a valid JSON) so endpoints return
appropriate response code (401 instead of 500).

## Which issue(s) this PR fixes
Related to https://github.com/grafana/oncall-private/issues/1633

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
2023-05-23 16:13:25 +00:00
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
api_auth_token.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
base_auth_token.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
plugin_auth_token.py Improve plugin authentication (#1995) 2023-05-23 16:13:25 +00:00
schedule_export_auth_token.py Insight logs (#348) 2022-08-24 12:04:44 +05:00
slack_auth_token.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
user_schedule_export_auth_token.py Insight logs (#348) 2022-08-24 12:04:44 +05:00