Skip to content

seanpfeifer/bnet-id

Repository files navigation

bnet-id

What's my BNet ID?

Running

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

Building

Via Docker

docker build -t bnet-id:latest .

Setup

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.