2026-05-23 19:55:51 +02:00
2026-09-23 18:03:39 +02:00
2026-07-20 23:37:59 +02:00
2026-07-20 23:37:59 +02:00
2026-05-22 14:40:22 +02:00
2026-09-21 18:07:32 -04:00
2026-09-21 21:06:06 +02:00

Staff-Auth

An Ory Hydra authentication and authorization provider.

Caution

This server implements no rate limiting on its own, make sure rate limiting is configured in your reverse proxy, specifically on /login.

Building

JVM: ./gradlew shadowJar
GraalVM Native: ./gradlew nativeCompile

Configuration

Copy application.yml.example, rename it to whatever you like, fill it in and run the server binary with MICRONAUT_CONFIG_FILES=path/to/your/application.yml.

Initial setup

Run the server binary with --initialSetup.adminUuid=your-uuid-here.

Reverse proxy

  • Set micronaut.server.client-address-header (e.g. X-Forwarded-For) and have the proxy overwrite it. The Minecraft IP check uses it.
  • Set micronaut.server.host-resolution.protocol-header: X-Forwarded-Proto so the OAuth redirect_uri is https://.
  • Don't use micronaut.server.context-path, the OAuth login/callback routes ignore it. Strip the prefix in the proxy instead and also proxy /oauth/ to Staff-Auth.
S
Description
An Ory Hydra authentication and authorization provider.
Readme Unlicense
289 KiB
0 Stars 2 Watchers 0 Forks
Languages
Kotlin 100%