Discord OAuth proxy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/disguard
static
vendor
.gitignore
.travis.yml
Dockerfile
LICENSE.md
README.md
auth.go
config.example.yaml
config.go
cookies.go
goreleaser.yml
guild.go
oauth.go
reverseproxy.go
rice-box.go
user.go

README.md

DisGuard - Discord OAuth Proxy GoDoc Build Status Go Report Card 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.