In order to test the OAuth flow, you need to set up an application in Azure Active Directory (Azure AD) with the necessary permissions. Follow these steps:
- Go to Azure Portal > Azure Active Directory > App registrations > New registration.
- Fill in the name, check
Accounts in this organizational directory only (Default Directory only - Single tenant)and clickRegister.
- Click
Add a permission. - Select
Microsoft Graph>Delegated permissions. - Add the following permissions:
- User.ReadWrite.All
- Group.ReadWrite.All
- RoleManagement.ReadWrite.Directory
- AppRoleAssignment.ReadWrite.All
- Application.ReadWrite.All
- Click
Add permissions.
- Navigate to
Certificates & secrets. - Click
New client secret, fill in the description and expiration, then clickAdd. - Copy the
valueof the client secret.
You can run the tests via ./regression.py and provide the following parameters:
./regression.py --clickhouse https://altinity-build-artifacts.s3.amazonaws.com/PRs/920/7498a034ab5c1083a9394b79c1bbec8abb92250a/build_amd_release/clickhouse-common-static_25.6.5.1_amd64.deb --identity-provider azure --tenant-id <tenant_id> --client-id <client_id> --client-secret <client_secret>For keycloak no parameters are required:
./regression.py --clickhouse https://altinity-build-artifacts.s3.amazonaws.com/PRs/920/7498a034ab5c1083a9394b79c1bbec8abb92250a/build_amd_release/clickhouse-common-static_25.6.5.1_amd64.deb --identity-provider keycloak