OAuth provider library for the minetest community
Docs: https://pkg.go.dev/github.com/minetest-go/oauth
Example implementation: https://pkg.go.dev/github.com/minetest-go/oauth#example-OauthHandler
Supported providers:
- ContentDB
- Mesehub
- Github
- Discord
Create a "docker-compose.override.yml" with the following content:
version: "3.6"
services:
oauth:
environment:
- GITHUB_APP_ID=
- GITHUB_APP_SECRET=
- MESEHUB_APP_ID=
- MESEHUB_APP_SECRET=
- DISCORD_APP_ID=
- DISCORD_APP_SECRET=
- CDB_APP_ID=
- CDB_APP_SECRET=
Fill in the client-id's and secrets accordingly.
Callback-urls have to match the following list:
- ContentDB:
http://localhost:8080/api/oauth_callback/cdb
- Mesehub:
http://localhost:8080/api/oauth_callback/mesehub
- Github:
http://localhost:8080/api/oauth_callback/github
- Discord:
http://localhost:8080/api/oauth_callback/discord
- Codeberg:
http://localhost:8080/api/oauth_callback/codeberg
Start the dev server:
docker-compose up
Navigate to http://localhost:8080 and try out the login links
Code: MIT