Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Client credential authentication for configuration download #65

Merged
merged 6 commits into from
Dec 17, 2024

Conversation

malexmave
Copy link
Collaborator

At the moment, we can only use password-based authentication to download the configuration from Keycloak. This PR adds functionality to use a service account with the relevant permissions to perform the config dump.

As a bonus, it also allows choosing a different client, including confidential clients, for password-based authentication. This is useful if you want to switch to a confidential client to avoid having a public client with direct access grants enabled (i.e., something that kcwarden itself would complain about 😉).

See the updated documentation for usage information.

Closes #55.

@malexmave malexmave added the enhancement New feature or request label Dec 13, 2024
@malexmave malexmave requested a review from twwd December 13, 2024 14:09
kcwarden/subcommands/download.py Outdated Show resolved Hide resolved
kcwarden/subcommands/download.py Outdated Show resolved Hide resolved
kcwarden/subcommands/download.py Outdated Show resolved Hide resolved
kcwarden/subcommands/download.py Outdated Show resolved Hide resolved
@malexmave malexmave requested a review from twwd December 16, 2024 09:47
@twwd twwd force-pushed the feature/client-credential-auth branch from 2fcafc6 to 2c00b70 Compare December 17, 2024 13:51
@twwd twwd enabled auto-merge (squash) December 17, 2024 13:52
@twwd twwd merged commit 496de7e into main Dec 17, 2024
4 checks passed
@twwd twwd deleted the feature/client-credential-auth branch December 17, 2024 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Config Download: Allow using confidential client with service account
2 participants