This project is a bare-bones OAuth Authorization Server designed to support development of OAuth client applications.
The build is managed by Gradle, and requires a Java Development Kit version 17+ to build (and run).
# Unix-like OS
./gradlew build
# Windows
./gradlew.bat build
This will build an executable JAR in the build/libs
directory, named like
solarnet-dev-auth-server-X.jar
where X
is a version number.
To run the app:
java -jar build/libs/solarnet-dev-auth-server-1.0.0.jar
Create an application.yml
file in your launch working directory. See the
default configuration for
reference. For example:
app:
oauth:
scopes:
- "good"
- "times"
client-id: "dev-client"
client-secret: "{noop}dev-client-secret"
keystore:
path: "var/keystore"
password: "Secret.123"
alias: "auth-server"