debian-forge-composer/test/cases
Tomas Hozza 24c52c8d69 osbuild-mock-openid-provider: support client_credentials grant type
Extend the implementation of mock openid server to take the `grant_type`
into consideration for the `/token` endpoint.

In addition to the previously supported `refresh_topen`, the
implementation now supports also `client_credentials`.

This is necessary to make it possible to use the mock server in
the `koji-osbuild` CI, because the builder plugin uses
`client_credentials` to get access token.

The implementation behaves in the following way:
 - For `refresh_token` grant type, it takes the `refresh_token` value
   from the request and adds it to the `rh-org-id` field in the custom
   claim, which is part of the returned token.
 - For `client_credentials` grant type, it takes the `client_secret`
   value from the request and adds it to the `rh-org-id` field in the
   custom claim, which is part of the returned token.

Requests without the supported `grant_type` set are rejected.

Modify affected test cases to specify `grant_type` when fetching a new
access token.
2022-08-05 16:15:24 +02:00
..
api osbuild-mock-openid-provider: support client_credentials grant type 2022-08-05 16:15:24 +02:00
api.sh osbuild-mock-openid-provider: support client_credentials grant type 2022-08-05 16:15:24 +02:00
aws.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
aws_s3.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
azure.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
azure_hyperv_gen2.sh Test Azure images on HyperV Gen1 and Gen2 2021-06-22 13:44:19 +03:00
base_tests.sh provision.sh: don't start local worker and Weldr with TLS auth 2022-08-04 11:55:43 +02:00
container-embedding.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
container-upload.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
cross-distro.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
diff-manifests.sh test/diff-manifests: fix error handling 2022-07-28 10:12:17 +02:00
filesystem.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
gcp.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
generic_s3.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
generic_s3_http.sh Upload to HTTPS S3 - Support self signed certificate 2022-05-26 13:46:00 +03:00
generic_s3_https_insecure.sh Upload to HTTPS S3 - Support self signed certificate 2022-05-26 13:46:00 +03:00
generic_s3_https_secure.sh Upload to HTTPS S3 - Support self signed certificate 2022-05-26 13:46:00 +03:00
image_tests.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
installers.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
koji.sh test/koji.sh: use JWT authentication method 2022-08-04 11:55:43 +02:00
libvirt.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
manifest_tests.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
multi-tenancy.sh test: add functions variant usable with JWT without providing ORG ID 2022-08-04 11:55:43 +02:00
oscap.sh test: add oscap tests 2022-08-04 18:19:06 +02:00
ostree-ng.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
ostree-raw-image.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
ostree-rebase.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
ostree-simplified-installer.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
ostree.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
regression-bigiso.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
regression-composer-works-behind-satellite-fallback.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
regression-composer-works-behind-satellite.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
regression-excluded-dependency.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
regression-include-excluded-packages.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
regression-insecure-repo.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
regression-no-explicit-rootfs-definition.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00
regression-old-worker-new-composer.sh ci/tests: Change the way artifacts are collected 2022-07-18 11:33:57 +03:00
shared_lib.sh tests: Add nvr checking into a shared library 2022-02-04 23:43:43 +01:00
upgrade8to9.sh ci/tests: Change the way artifacts are collected 2022-07-18 11:33:57 +03:00
vmware.sh provision.sh: add none authentication method for on-premise scenario 2022-08-04 11:55:43 +02:00