Skip to content

Public authentication and request forwarding service for Gowon

Notifications You must be signed in to change notification settings

gowon-bot/doughnut

Repository files navigation

Doughnut

心には君形の穴が空いてるの Just like a doughnut

This project is part of Gowon bot (main repo)

Running yourself

Copy services.example.yml to services.yml and fill out the services.

Copy .env.example to .env and fill out the missing variables.

Structure

Doughnut provides 3 endpoints:

/token/request - Request a token, requires a valid Discord auth code

/token/destroy - Destroy an existing token

/services/:service/* - Make a request to a service. :service needs to match one of the services in services.yml, the rest of the path will be passed on through the url defined there.

For forwarded requests, Doughnut adds a custom header, Doughnut-Discord-Id, which comes from the token. Services can use this to verify that a requester's discord id matches the request's discord id.

Any questions?

Somethings broken? Just curious how something works?

Feel free to shoot me a Discord dm at john!#2527 or join the support server! https://discord.gg/9Vr7Df7TZf

About

Public authentication and request forwarding service for Gowon

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published