Skip to content

Battle.NET API Integration

David Martin edited this page Jan 23, 2016 · 4 revisions

This site uses the Battle.NET API, and it will need to be configured for you to run it locally.

A configured battle.net API will allow you to connect to their OAuth from the website when doing local development.

Battle.NET Setup

  1. Go to dev.battle.net and either log in or create a new account
  2. Once logged in, go to my account
  3. Go to the Applications tab
  4. Click Create New Application
  5. Your application will look like this:
1. For the callback URL, you will enter this value: `https://localhost:3000/auth/bnet/callback` This value comes from `config.default.json`, and is the default value for the callback URL

Warcraft LFG Setup

Once you have a key, you can navigate to the My API Keys page on battle.net.

The next steps assume that you've set up the config.development.json file in /server/app/config/, and will not cover that step.

  1. Navigate to My API Keys on the dev.battle.net site.
  2. In config.development.json, scroll to the oauth.bnet section.
  3. clientID should have its value set to "Key" from the battle.net site.
  4. clientSecret should have its value set to the "Secret" from the battle.net site.

After the site rebuilds, it should now allow authentication.

Clone this wiki locally