Skip to content
/ oauth2-sso-demo Public template

OIDC SSO Demo with Spring Boot + Spring Security

Notifications You must be signed in to change notification settings

making/oauth2-sso-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth2/OIDC SSO Demo with Spring Boot + Spring Security

This demo app consists of following three components:

How to run

Java 21+ and docker are required.

./mvnw spring-boot:run -f authorization -Dspring-boot.run.arguments="--spring.docker.compose.enabled=true --spring.docker.compose.file=$(pwd)/compose.yaml"
./mvnw spring-boot:run -f todo-api -Dspring-boot.run.arguments="--spring.docker.compose.enabled=true --spring.docker.compose.file=$(pwd)/compose.yaml"
./mvnw spring-boot:run -f todo-frontend -Dspring-boot.run.arguments="--spring.docker.compose.enabled=true --spring.docker.compose.file=$(pwd)/compose.yaml"

Visit http://localhost:8080 (todo-frontend). The first time you visit, you will be redirected to http://127.0.0.1:9000 (authorization).

image image

Feel free to add new Todos or complete them.

image

You can see the tracing via Zipkin (http://localhost:9411)

image image

Docker Compose will automatically start up when the app is started, but it will not automatically shut down, so if you do not need Zipkin after stopping the app, please shut down Docker Compose as well.

pkill -TERM java
docker compose down

About

OIDC SSO Demo with Spring Boot + Spring Security

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages