Add a starlette auth backend for bearer tokens
accepts Keycloak server details and an aiocache cache instance returns a starlette SimpleUser along with permissions
Showing
- mypy.ini 6 additions, 0 deletionsmypy.ini
- requirements-starlette.txt 3 additions, 0 deletionsrequirements-starlette.txt
- setup.py 1 addition, 0 deletionssetup.py
- swh/auth/starlette/__init__.py 0 additions, 0 deletionsswh/auth/starlette/__init__.py
- swh/auth/starlette/backends.py 114 additions, 0 deletionsswh/auth/starlette/backends.py
- swh/auth/tests/starlette/__init__.py 0 additions, 0 deletionsswh/auth/tests/starlette/__init__.py
- swh/auth/tests/starlette/test_backend.py 82 additions, 0 deletionsswh/auth/tests/starlette/test_backend.py
- tox.ini 3 additions, 0 deletionstox.ini
requirements-starlette.txt
0 → 100644
swh/auth/starlette/__init__.py
0 → 100644
swh/auth/starlette/backends.py
0 → 100644
swh/auth/tests/starlette/__init__.py
0 → 100644
swh/auth/tests/starlette/test_backend.py
0 → 100644
Please register or sign in to comment