https://github.com/solarnetwork/solarnetwork-dev-auth-server
Development OAuth authorization server.
https://github.com/solarnetwork/solarnetwork-dev-auth-server
Last synced: 8 months ago
JSON representation
Development OAuth authorization server.
- Host: GitHub
- URL: https://github.com/solarnetwork/solarnetwork-dev-auth-server
- Owner: SolarNetwork
- License: gpl-2.0
- Created: 2022-11-20T22:51:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T18:32:47.000Z (over 1 year ago)
- Last Synced: 2025-01-31T07:32:04.339Z (about 1 year ago)
- Language: Java
- Size: 133 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SolarNetwork Developer OAuth Server
This project is a bare-bones OAuth Authorization Server designed to support development of OAuth
client applications.
# Building
The build is managed by Gradle, and requires a Java Development Kit version 17+ to build (and run).
```sh
# 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.
# Running
To run the app:
```sh
java -jar build/libs/solarnet-dev-auth-server-1.0.0.jar
```
# Configuration
Create an `application.yml` file in your launch working directory. See the
[default configuration](./tree/main/src/main/resources/application.yml) for
reference. For example:
```yml
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"
```