Skip to content

wearearima/spring-boot-dex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

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.

With Docker

  1. Clone this repo:
git clone https://github.com/wearearima/spring-boot-dex.git
  1. Move to spring-boot-dex folder:
cd spring-boot-dex
  1. Build spring-boot demo application
mvn clean package
  1. Run Docker containers:
docker-compose up
  1. Go to http://localhost:8080/

Credentials to authenticate in Dex: admin@example.com / password

Without Docker

Setup

  1. Install Golang: https://golang.org/doc/install
  2. Install Dex:
go get github.com/coreos/dex
cd $GOPATH/src/github.com/coreos/dex
make
  1. Clone this repo:
git clone https://github.com/wearearima/spring-boot-dex.git
  1. 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

  1. Run dex:
cd $GOPATH/src/github.com/coreos/dex
./bin/dex serve examples/spring-boot-demo.yaml
  1. Build and run Spring Boot demo application
mvn clean package
mvn spring-boot:run
  1. Go to http://localhost:8080/

Credentials to authenticate in Dex: admin@example.com / password

Credits

Created by https://www.arima.eu

ARIMA Software Design

Releases

No releases published

Packages

No packages published

Languages