This is a demo application based on Spring Boot. Authentication is implemented using Oauth Authorization Code grant and the Authorization Server used is Coreos Dex.
- Clone this repo:
git clone https://github.com/wearearima/spring-boot-dex.git
- Move to
spring-boot-dex
folder:
cd spring-boot-dex
- Build spring-boot demo application
mvn clean package
- Run Docker containers:
docker-compose up
- Go to http://localhost:8080/
Credentials to authenticate in Dex: [email protected] / password
- Install Golang: https://golang.org/doc/install
- Install Dex:
go get github.com/coreos/dex
cd $GOPATH/src/github.com/coreos/dex
make
- Clone this repo:
git clone https://github.com/wearearima/spring-boot-dex.git
- Copy the dex configuration file for this spring-boot demo application
cp spring-boot-dex/spring-boot-demo.yaml $GOPATH/src/github.com/coreos/dex/examples
- Run dex:
cd $GOPATH/src/github.com/coreos/dex
./bin/dex serve examples/spring-boot-demo.yaml
- Build and run Spring Boot demo application
mvn clean package
mvn spring-boot:run
- Go to http://localhost:8080/
Credentials to authenticate in Dex: [email protected] / password
Created by https://www.arima.eu