This simply wraps Discord OAuth2 to OpenID Connect.
OUTDATED. Use discord-oidc-worker.
Clone this repo or download as zip
Edit config.js with your Client ID / Secret, Redirect URL, and Port / Host.
const config = {
clientId: 'YOUR_CLIENT_ID',
clientSecret: 'YOUR_CLIENT_SECRET',
redirectURL: 'https://YOUR_GATEWAY.cloudflareaccess.com/cdn-cgi/access/callback',
host: '127.0.0.1',
port: 1214
}
Simply use npm start
or node server.js
to start.
I recommend using Apache2 / Nginx proxies to secure connections.
For Cloudflare Access: