https://github.com/mrhappyma/canny-discord-auth
i made this in an hour and coolify makes me deploy applications from a git repository so why not make it public
https://github.com/mrhappyma/canny-discord-auth
Last synced: 3 months ago
JSON representation
i made this in an hour and coolify makes me deploy applications from a git repository so why not make it public
- Host: GitHub
- URL: https://github.com/mrhappyma/canny-discord-auth
- Owner: mrhappyma
- License: mit
- Created: 2022-10-11T21:32:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-03T04:21:08.000Z (almost 3 years ago)
- Last Synced: 2025-10-12T18:48:27.481Z (8 months ago)
- Language: Dockerfile
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# canny-discord-auth
#### a simple flow to use [Canny](https://canny.io)'s SSO login feature with Discord oauth
## Setup
Add a `.env` file with the following values:
```shell
DISCORD_CLIENT_ID= // client ID from Discord dev portal
DISCORD_CLIENT_SECRET= // client secret, also from Discord dev portal
CANNY_PRIVATE_KEY= // SSO key from Canny
HOST= // Host (with the slash at the end). Something like "http://127.0.0.1:3000/" or "https://canny-auth.example.com/"
```
### Discord redirect URI:
/auth/finish. Something like "http://127.0.0.1:3000/auth/finish" or "https://canny-auth.example.com/auth/finish"
### Canny SSO URI:
/auth/start. Something like "http://127.0.0.1:3000/auth/start" or "https://canny-auth.example.com/auth/start"
## Actually running it
Install stuff with `npm i` or `pnpm i`
Start with `npm run start` or `pnpm start`