# WoW Battle.net Login

Adds a Battle.net login button to your Drupal site so players can sign in with their Battle.net account instead of creating a separate username and password. New accounts are created automatically on first login using the player's BattleTag as their username.

## Quick start

```
drush en wow_battlenet_login -y
```

Then visit `/admin/config/people/openid-connect` to make the Battle.net button visible, and register your redirect URI (`https://your-site.example.com/openid-connect/battlenet`) in the [Battle.net developer portal](https://develop.battle.net/).

## What you get

- Battle.net OAuth login button on the Drupal login page
- Automatic account creation on first login (BattleTag becomes the username)
- Credentials managed in one place via the core WoW module settings — no duplicate configuration
- `wow.profile` scope requested so downstream modules can access WoW profile data

## Requirements

- [World of Warcraft API](../../README.md) core module
- [OpenID Connect](https://www.drupal.org/project/openid_connect) module

## Documentation

See the [full documentation](https://project.pages.drupalcode.org/wow/).
