zulip/zerver
Alessandro Toppi ff89590558 auth: Add JWT-based user API key fetch.
This adds a new endpoint /jwt/fetch_api_key that accepts a JWT and can
be used to fetch API keys for a certain user. The target realm is
inferred from the request and the user email is part of the JWT.

A JSON containing an user API key, delivery email and (optionally)
raw user profile data is returned in response.
The profile data in the response is optional and can be retrieved by
setting the POST param "include_profile" to "true" (default=false).

Co-authored-by: Mateusz Mandera <mateusz.mandera@zulip.com>
2023-02-03 15:23:35 -08:00
..
actions black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
data_import black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
integration_fixtures/nagios
lib api-docs: Move markdown files to top level directory. 2023-02-02 17:25:40 -08:00
management black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
migrations black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
openapi api-docs: Move markdown files to top level directory. 2023-02-02 17:25:40 -08:00
tests auth: Add JWT-based user API key fetch. 2023-02-03 15:23:35 -08:00
tornado black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
views auth: Add JWT-based user API key fetch. 2023-02-03 15:23:35 -08:00
webhooks black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
worker ruff: Fix S108 Probable insecure usage of temporary file. 2023-01-26 10:14:56 -08:00
__init__.py
apps.py sentry: Initialize sentry in AppConfig ready hook. 2022-09-26 12:42:36 -07:00
context_processors.py apps: Fix redirect from /apps -> https://zulip.com/apps/. 2022-12-30 17:47:16 -08:00
decorator.py decorator: Do not send HEAD response with non-empty body. 2023-01-06 13:32:47 -08:00
filters.py
forms.py ruff: Fix SIM105 Use `contextlib.suppress` instead of try-except-pass. 2023-01-23 11:18:36 -08:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
models.py models: Improve documentation for FOLLOWED UserTopics. 2023-02-03 11:25:05 -08:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00