What's my BNet ID?
Via Docker:
docker run --name="bnet" -p 8080:8080 -v ./secrets:/secrets ghcr.io/seanpfeifer/bnet-id:latest
Locally for development:
go run ./cmd/server
Via Docker
docker build -t bnet-id:latest .
Ensure you have a secrets
directory with secret.toml
in it with the following format:
clientID = "CLIENT_ID_HERE"
clientSecret = "CLIENT_SECRET_HERE"
redirectURL = "https://YOUR_SITE_HERE/oauthCallback"
Your clientID and clientSecret can be found at Battle.net's API Access portal. You will also need to configure the associated client to have the redirectURL that you will be using in your application.