Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

code to add / remove redirect url's from a pre-existing keycloak client

License

Notifications You must be signed in to change notification settings

bcgov/kc-autoadd-redirecturl

Repository files navigation

Issues Pull Requests MIT License Lifecycle:Retired

Add Keycloak Redirect

setup - install deps

python -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt

setup - define env vars

  • define the following environment variables:
KC_HOST=<keycloak host>
KC_CLIENTID=<keycloak client id with service account>
KC_SECRET=<keycloak secret>
KC_REALM=<keycloak realm>

KC_CLIENT_2_CONFIG=<keycloak client who's redirect urls are to be modified>

Add Redirect:

python src/keyCloakAddRedirect.py -add redirect_url

Remove Redirect:

python src/keyCloakAddRedirect.py -del redirect_url

About

code to add / remove redirect url's from a pre-existing keycloak client

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published