{"id":19398921,"url":"https://github.com/pschiffe/keycloak-demo","last_synced_at":"2025-04-24T06:31:37.964Z","repository":{"id":52996135,"uuid":"79554795","full_name":"pschiffe/keycloak-demo","owner":"pschiffe","description":"Keycloak SAML broker demo deployed with ansible","archived":false,"fork":false,"pushed_at":"2017-02-15T10:38:23.000Z","size":398,"stargazers_count":5,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T09:57:36.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/pschiffe.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}},"created_at":"2017-01-20T11:48:04.000Z","updated_at":"2024-01-05T19:55:22.000Z","dependencies_parsed_at":"2022-09-08T03:21:09.446Z","dependency_job_id":null,"html_url":"https://github.com/pschiffe/keycloak-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschiffe%2Fkeycloak-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschiffe%2Fkeycloak-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschiffe%2Fkeycloak-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pschiffe%2Fkeycloak-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pschiffe","download_url":"https://codeload.github.com/pschiffe/keycloak-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250578135,"owners_count":21453250,"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":[],"created_at":"2024-11-10T11:07:39.903Z","updated_at":"2025-04-24T06:31:37.572Z","avatar_url":"https://github.com/pschiffe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Keycloak SAML provider demo\n\nKeycloak SAML provider demo based on example in [Keycloak repository](https://github.com/keycloak/keycloak/tree/master/examples/broker/saml-broker-authentication) for OpenShift, automatically deployed with ansible.\n\nDirectory [web-app](https://github.com/pschiffe/keycloak-demo/tree/master/web-app) contains source for [Docker image](https://hub.docker.com/r/pschiffe/keycloak-demo-web-app/) with sample web application which is used to test authentication.\n\n## Usage\n\nClone the repository, edit the inventory file and add correct host to the `[oc_client]` group. This host has to have configured `oc` client for OpenShit. You can also use command `oc cluster up` on `localhost` to start OpenShift locally. Variable `public_hosted_zone` needs to be configured to the OpenShift public hosted zone. The `xip.io` domain is used when running the OpenShift with `oc cluster up`. Everything deployed with this playbook will be in the `keycloak-poc` (configurable) project in OpenShift.\n\n```\ngit clone https://github.com/pschiffe/keycloak-demo.git\ncd keycloak-demo\n# Edit inventory file\nansible-playbook -e 'public_hosted_zone=192.168.1.7.xip.io' ./saml-broker/saml-broker.yml\n```\n\nOnce the Keycloak is deployed, there will be 2 realms, `saml-broker-realm` containing the user (with login `user/password`) and providing a SAML v2 Identity Provider and the `saml-broker-authentication-realm` which contains local admin user (with login `admin/password`) and is used for SAML brokering.\n\n## Issues to fix\n\nCurrently it's not possible to do this without modifying the `sso70-https.json` template provided by OpenShift https://github.com/jboss-openshift/application-templates/issues/220\n\nRFE to not import users to the keycloak local database when brokering can be found here https://issues.jboss.org/browse/KEYCLOAK-4429\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschiffe%2Fkeycloak-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpschiffe%2Fkeycloak-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpschiffe%2Fkeycloak-demo/lists"}