Skip to content

karimgarza/sparklr-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This project is a minimal but functional OAuth2 Authorization Server (token issuer) and Resource Server (protected API). (You could split the two roles across two applications if you preferred.) It uses Spring Boot to provide an embedded servlet container and for defaulting a load of configuration, so you should be up and running with it very quickly.

Building

You need Java (1.8 or better) and Maven (3.0.5 or better):

$ mvn clean install
$ mvn spring-boot:run
...
<app starts and listens on port 8080>

Here are some curl commands to use to get started:

$ curl -H "Accept: application/json" my-trusted-client@localhost:8080/oauth/token -d "grant_type=password&username=user&password=password"

$ curl -H "Authorization: Bearer $TOKEN" localhost:8080/
Hello World

About

Spring Boot OAuth2 Authorization Server, Resource Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages