Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dominodatalab/keycloak-script-provider-uploader
Utility to install Keycloak script providers from the command line
https://github.com/dominodatalab/keycloak-script-provider-uploader
Last synced: 29 days ago
JSON representation
Utility to install Keycloak script providers from the command line
- Host: GitHub
- URL: https://github.com/dominodatalab/keycloak-script-provider-uploader
- Owner: dominodatalab
- Created: 2023-06-08T15:40:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T15:24:36.000Z (9 months ago)
- Last Synced: 2024-04-02T16:39:48.582Z (9 months ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# keycloak-script-provider-uploader
Utility to install Keycloak script providers from the command line## Usage
`python script_provider_uploader.py`By default, the script will:
* Look for files ending in `-authenticator.js`, `-mapper.js` and `-policy.js` in your current directory.
* Build a .jar file with the appropriate file structure and metadata JSON file.
* Look for a namespace including the words "domino" and "platform" in your current kubectl context.
* Look for the all Keycloak pods in that namespace.
* Compress the .jar file and copy it to your Keycloak pod.You can supply any number of Javascript script provider files when you run the updater script– you don't have to have an authenticator, a mapper and a policy.
## Customisation
If your Keycloak instance does not run in a namespace that includes both `domino` and `platform`, you can override this with the environment variable `KEYCLOAK_NAMESPACE`.`export KEYCLOAK_NAMESPACE=keycloak-namespace; python script_provider_uploader.py`
You specify another directory for your Javascript script providers like so:
`python script_provider_uploader.py /path/to/javascript/files`The path can be relative to the uploader script (`./javascript/files`) or absolute, as above.