https://github.com/zet4/disguard
Discord OAuth proxy
https://github.com/zet4/disguard
discord golang-application oauth-application
Last synced: 10 months ago
JSON representation
Discord OAuth proxy
- Host: GitHub
- URL: https://github.com/zet4/disguard
- Owner: zet4
- License: mit
- Created: 2017-02-25T11:45:04.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-02T10:58:24.000Z (over 5 years ago)
- Last Synced: 2024-06-19T02:05:53.532Z (about 2 years ago)
- Topics: discord, golang-application, oauth-application
- Language: Go
- Size: 466 KB
- Stars: 11
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# DisGuard - Discord OAuth Proxy [](https://godoc.org/go.zeta.pm/disguard) [](https://travis-ci.org/zet4/disguard) [](https://goreportcard.com/report/go.zeta.pm/disguard) [](https://github.com/zet4/disguard/blob/master/LICENSE)
## Why?
Because we want content locked to discord guild memberships.
## How?
You make a file named `config.yaml` with contents similar to what you can find in `config.example.yaml` in this repository.
Once done, launch the application and go to the website, if you configured it to require session, you will be sent to oauth login right away, if not, you will have to manually visit `/oauth/login` to get redirected.
Once logged in, each request the user makes will be proxied to your defined backend, with attached named header, in example thats `XWhitelistedGuilds`.
From there on its your job to handle that.
Session is valid for one week.