Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module allows users to register and log in to your Drupal site using their Battle.net account. It creates a new user account or associates a Battle.net account with an existing one upon login.

Social Auth Battle.net allows users to register and login to your Drupal site with their Batle.net account. This module is based on Social Auth and Social API projects.

Installation

Install as you would normally install a contributed Drupal module. For further
information, see Installing Drupal Modules.

Configuration

In Drupal

1. Log in as an admin.
2. Navigate to Configuration » User authentication » Battle.net and copy
the Authorized redirect URI field value (the URL should end in
`/user/login/bnet/callback`).

In Battle.net

3. Log in to the Battle.net Developer Portal.
4. Navigate to the "API Access" page.
5. Click "Create Client"
6. Set the "Client Name", "Service URL", and "Intended Use" (optional).
7. Paste the redirect URI value (from Step 2) in the "Redirect URL" field.
8. Click "Save".
9. On the new client page click "Generate New Secret".
10. Copy the new client secret and client ID and save them somewhere safe.

Back In Drupal

11. Return to Configuration » User authentication » Battle.net
12. Enter the Battle.net client ID in the "Client ID" field.
13. Enter the Battle.net secret key in the "Client secret" field.
14. Click Save configuration.
15. Navigate to Structure » Block Layout and place a Social Auth login block
somewhere on the site (if not already placed).

That's it! Log in with a Battle.net account to test the implementation.

How it works

The user can click on the Battle.net logo in the Social Auth Login block. You can also add a button or link anywhere on the site that points to `/user/login/bnet`, so theming and customizing the button or link is very flexible.

After Battle.net has returned the user to your site, the module compares the
user id or battle tag provided by Battle.net. If the user has previously
registered using Battle.net or your site already has an account with the same
battle tag, the user is logged in. If not, a new user account is created.
Also, a Battle.net account can be associated with an authenticated user.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
1.x-dev Dev 10–11 Jan 23, 2025