{"id":30799414,"url":"https://github.com/triole/keycloak-shell-scripts","last_synced_at":"2025-09-05T19:12:05.730Z","repository":{"id":209003403,"uuid":"722987863","full_name":"triole/keycloak-shell-scripts","owner":"triole","description":"a collection of shell scripts to interact with keycloak","archived":false,"fork":false,"pushed_at":"2024-11-18T13:06:00.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-18T14:49:01.290Z","etag":null,"topics":["keycloak","shell-scripts","testing"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/triole.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-24T12:16:08.000Z","updated_at":"2024-11-18T13:06:04.000Z","dependencies_parsed_at":"2023-11-27T10:33:42.669Z","dependency_job_id":"b95cca0b-0953-43d9-8e0e-5a848e9a2fb4","html_url":"https://github.com/triole/keycloak-shell-scripts","commit_stats":{"total_commits":11,"total_committers":1,"mean_commits":11.0,"dds":0.0,"last_synced_commit":"35291b79ff630bd8b50b03bafe699e2b5430bbfa"},"previous_names":["triole/keycloak-shell-scripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/triole/keycloak-shell-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triole%2Fkeycloak-shell-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triole%2Fkeycloak-shell-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triole%2Fkeycloak-shell-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triole%2Fkeycloak-shell-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/triole","download_url":"https://codeload.github.com/triole/keycloak-shell-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/triole%2Fkeycloak-shell-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273806205,"owners_count":25171569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["keycloak","shell-scripts","testing"],"created_at":"2025-09-05T19:11:48.073Z","updated_at":"2025-09-05T19:12:05.711Z","avatar_url":"https://github.com/triole.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keycloak Shell Scripts\n\n\u003c!-- toc --\u003e\n\n- [Keycloak Client Config](#keycloak-client-config)\n- [Create configuration toml](#create-configuration-toml)\n- [Run scripts](#run-scripts)\n- [General remarks](#general-remarks)\n- [Decode Base64](#decode-base64)\n\n\u003c!-- /toc --\u003e\n\n## Keycloak Client Config\n\nIn order to be able to retrieve tokens via curl the client's configuration in Keycloak needs to be set up accordingly. Make sure `Client authentication` is off and enable `Direct access grants` as seen below.\n\n![client conf](gfx/client_config.png)\n\n## Create configuration toml\n\nCreate a configuration toml inside the `configs` folder. Use `examples/conf.toml` as template. Fill it with your Keycloak's url and the required authentication data\n\n## Run scripts\n\nThe scripts are located inside the `sh` folder. If you have multiple configuration files inside `configs` you can use a positional argument to make use of the correct toml file. The first file name that contains the given substring is used.\n\n```shell\n# display help\nsh/get_user_access_token --help\n\n# retrieve user access token\nsh/get_user_access_token myconf\n\n# retrieve and decode client access token, verbose mode\nsh/get_client_access_token anotherconf -v\n```\n\n## General remarks\n\n## Decode Base64\n\nUse `| base64 -di` to decode base64 strings in shell. Or in the script like `sh/get_user_access_token admin | jq .access_token | sh/decode_token`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftriole%2Fkeycloak-shell-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftriole%2Fkeycloak-shell-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftriole%2Fkeycloak-shell-scripts/lists"}