Commits on Source (2)
-
Pierre-Yves David authored
At the end of a auth-config command run, we ask the user if the newly obtained token should be written on disk or discarded. The default is to discard it (which seems a bit weird, but is not the point here). Unlike what we do on write, where a green confirmation message is displayed, we do not display any message when discarding. So a user doing things a bit too fast can imagine that the update went all fine as it just display a wall of green messages. So we add a simple yellow message pointing out that we ultimately did not write the new token. That should fix the problem.
11734334 -
It adds some breaking API changes that needed to be handled in swh-auth implementation and changed the package managing JWT from python-jose to jwcrypto which is better maintained.
4b685dda
Showing
- mypy.ini 1 addition, 1 deletionmypy.ini
- requirements.txt 1 addition, 2 deletionsrequirements.txt
- swh/auth/cli.py 3 additions, 0 deletionsswh/auth/cli.py
- swh/auth/keycloak.py 15 additions, 22 deletionsswh/auth/keycloak.py
- swh/auth/pytest_plugin.py 5 additions, 9 deletionsswh/auth/pytest_plugin.py
- swh/auth/starlette/backends.py 4 additions, 5 deletionsswh/auth/starlette/backends.py
- swh/auth/tests/starlette/test_backend.py 14 additions, 4 deletionsswh/auth/tests/starlette/test_backend.py
... | ... | @@ -2,6 +2,5 @@ |
# should match https://pypi.python.org/pypi names. For the full spec or | ||
# dependency lines, see https://pip.readthedocs.org/en/1.1/requirements.html | ||
click | ||
python-keycloak >= 0.19.0, <3.9 | ||
python-jose | ||
python-keycloak >= 4 | ||
pyyaml |