https://github.com/vikbert/docker-keycloak-sso
A proof of concept "Single sign-on" with keycloak server container instance.
https://github.com/vikbert/docker-keycloak-sso
docker docker-compose keycloak mysql sso
Last synced: 10 months ago
JSON representation
A proof of concept "Single sign-on" with keycloak server container instance.
- Host: GitHub
- URL: https://github.com/vikbert/docker-keycloak-sso
- Owner: vikbert
- License: mit
- Created: 2017-12-22T12:47:43.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-05T12:54:40.000Z (about 4 years ago)
- Last Synced: 2024-11-07T10:41:00.233Z (over 1 year ago)
- Topics: docker, docker-compose, keycloak, mysql, sso
- Language: HTML
- Homepage:
- Size: 4.43 MB
- Stars: 22
- Watchers: 2
- Forks: 17
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
SSO Keycloak POC
=====================
This `SSO Demo` uses four container instances:
- keycloak: the OAuth2(OpenID connection) server instance
- db: the mysql server instance for keycloak backend
- app1: simple php web app
- app2: simple php web app
## Pre Install
Be sure that the `docker engine` & `docker-compose` are installed.
- Install docker engine: https://docs.docker.com/engine/installation/
- Install docker-compose: https://docs.docker.com/compose/install/
---
## Config the `keycloak` server
- import the project config
- add the test user for SSO
- add the password to the test user
Tutorial on youtube:
## Demostrate the web apps with `sso`
Tutorial on youtube :
## Start and clean up
start the container instanc
```bash
# start the containers
bash run.sh start
# stop the containers
bash run.sh stop
# clean up the containers
bash run.sh clean
```
### Urls
Open the admin console and the apps on the following URLs
```bash
# Keycloak admin console
http://localhost:8080/auth
# Web-app-1
http://localhost:8091/
# Web-app-2
http://localhost:8092/
```
### Keycloak Admin Login
```bash
user: admin
password: admin
```
### Screenshots