debian-koji-osbuild/test/unit
Christian Kellner 940e122ae9 builder: support for sso via oauth2
Implement support for authentication via OAuth2 using the client
credentials "Client Credentials Grant" flow (4.4 of RFC 6749).
For this a new configuration section is added to the config file,
where the client_id, client_secret and token_url have to be
specified.
The impelmention does currently not support "refresh tokens", but
does support refreshing the token if an `expires_in` is present
in the token itself.
Corresponding unit tests have been added.

[1] https://datatracker.ietf.org/doc/html/rfc6749#section-4.4
2022-02-02 13:33:21 +01:00
..
plugintest.py test: use importlib instead of imp 2021-10-05 12:18:46 +02:00
test_builder.py builder: support for sso via oauth2 2022-02-02 13:33:21 +01:00
test_cli.py plugins: ability to skip the tagging 2020-11-16 17:00:40 +01:00
test_hub.py plugins: ability to skip the tagging 2020-11-16 17:00:40 +01:00