{"id":22815914,"url":"https://github.com/ubrt/keycloak-postman","last_synced_at":"2025-03-30T22:29:58.426Z","repository":{"id":267138089,"uuid":"900365761","full_name":"ubrt/keycloak-postman","owner":"ubrt","description":"A keycloak collection and environment to use the keycloak api","archived":false,"fork":false,"pushed_at":"2024-12-08T16:14:43.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T03:40:33.117Z","etag":null,"topics":["administration","keycloak","postman","rest-api"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ubrt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-12-08T15:41:35.000Z","updated_at":"2024-12-08T15:59:23.000Z","dependencies_parsed_at":"2024-12-08T16:28:36.812Z","dependency_job_id":"80b29816-9e6c-4585-b117-61553a80507b","html_url":"https://github.com/ubrt/keycloak-postman","commit_stats":null,"previous_names":["ubrt/keycloak-postman"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubrt%2Fkeycloak-postman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubrt%2Fkeycloak-postman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubrt%2Fkeycloak-postman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ubrt%2Fkeycloak-postman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ubrt","download_url":"https://codeload.github.com/ubrt/keycloak-postman/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246390655,"owners_count":20769472,"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","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":["administration","keycloak","postman","rest-api"],"created_at":"2024-12-12T14:05:40.878Z","updated_at":"2025-03-30T22:29:58.409Z","avatar_url":"https://github.com/ubrt.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keycloak Postman Collection\n\nThis Postman collection was generated using the official OpenAPI endpoint: [Keycloak REST API OpenAPI Specification](https://www.keycloak.org/docs-api/latest/rest-api/openapi.json).\n\n---\n\n## Keycloak Setup\n1. **Create a Client**:\n   - In Keycloak, create a new client that supports service account roles.\n2. **Assign Admin Roles**:\n   - Map the necessary admin roles to this client.\n3. **Retrieve Credentials**:\n   - Copy the `clientId` and `clientSecret` for use in the Postman environment.\n\n## Postman Setup\n1. **Import Collection and Environment**:\n   - Import the provided Postman collection and example environment. Alternatively, create a custom environment.\n2. **Configure Environment**:\n   - Set up the environment variables for your Keycloak instance (e.g., base URL, client ID, and secret).\n3. **Token Management**:\n   - Leave `token` and `token_expiry` unchanged; these will be automatically managed by the pre-request script.\n     \n  \u003cimg width=\"902\" alt=\"Postman Example\" src=\"https://github.com/user-attachments/assets/084c581e-e00a-4dba-9e00-be2f3e8549c6\"\u003e\n\n\n## Using the Collection\n- **Path Variables**:\n   - Some requests require additional path parameters to be set in the \"Params\" tab under \"Path Variables.\"\n   - The `realm` parameter will be populated automatically using the environment settings.\n\n## Pre-request Script\nThe pre-request script:\n1. Checks if a valid token exists in the environment.\n2. If not, it requests a new token using the `client_credentials` grant type.\n3. Saves the new token and its expiry time in the environment variables.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubrt%2Fkeycloak-postman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubrt%2Fkeycloak-postman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubrt%2Fkeycloak-postman/lists"}