client: Add OpenID Connect bearer token authentication
By providing a refresh token, obtained with the "swh auth login" command to the new authenticate method of the client, all emitted requests will be authenticated using a bearer token sent in headers. Related to T1927
Showing
- docs/index.rst 17 additions, 0 deletionsdocs/index.rst
- swh/web/client/auth.py 9 additions, 0 deletionsswh/web/client/auth.py
- swh/web/client/client.py 46 additions, 4 deletionsswh/web/client/client.py
- swh/web/client/tests/conftest.py 2 additions, 1 deletionswh/web/client/tests/conftest.py
- swh/web/client/tests/test_cli.py 9 additions, 9 deletionsswh/web/client/tests/test_cli.py
- swh/web/client/tests/test_web_api_client.py 97 additions, 0 deletionsswh/web/client/tests/test_web_api_client.py
Please register or sign in to comment