-
- Downloads
api/graph: use a more generic UNAUTHENTICATED_HOSTS config to check access to graph API
Replace usage of the hardcoded and swh specific SWH_WEB_INTERNAL_SERVER_NAMES by a more generic UNAUTHENTICATED_HOSTS config option to bypass authentication for the graph public APIs. This uses the same validation logic as django's ALLOWED_HOSTS one.
parent
8738a04d
No related branches found
No related tags found
Showing
- swh/web/api/tests/views/test_graph.py 28 additions, 5 deletionsswh/web/api/tests/views/test_graph.py
- swh/web/api/views/graph.py 8 additions, 2 deletionsswh/web/api/views/graph.py
- swh/web/config.py 1 addition, 0 deletionsswh/web/config.py
- swh/web/settings/common.py 3 additions, 0 deletionsswh/web/settings/common.py
Please register or sign in to comment