[💶][2.0.1] Battle.net OAuth2 Full

💶 💲 💰 💵

Restrict registration to only be allowed through Battle.net OAuth2 provider.


User avatar
3Di
Founder
Founder
Points: 1 639,16 
Posts: 2450
Joined: 12 Mar 2018, 20:10
Location: Milan (IT) Frankfurt (DE)

[💶][2.0.1] Battle.net OAuth2 Full

Post by 3Di »

:smiling_imp: Battle.net OAuth2 Full v2.0.1 :smiling_imp:
💰 € = ask 3DI

Former download: extensions/vip-battlenet-oauth2-full

  • phpBB >= 3.2.7

  • PHP extension intl

  • PHP extension cUrl

  • SSL/HTTPS enabled and capable site


Options (ACP User Registration Settings)

  • Limit registration through Battle.net only:
    Restrict registration to only be allowed through Battle.net OAuth2 provider.

  • Allow separate accounts per region:
    This will allow users to create a different account for each of the Battle.net regions (4).

  • Set BattleTag as username:
    This will set the username to the user’s BattleTag returned by the Battle.net OAuth2 provider.

  • Set BattleTag as fixed username:
    This will prevent users from altering their BattleTag (username) upon registration.

  • Strip username of identifier:
    This will remove the pound and number (#123) from the end of the BattleTag when setting the username.

  • Append region to username:
    This will append the Battle.net region (APAC, CN, EU, US) to the username.

  • Append region string format:
    This will determine with what format the region is appended to the username.
    Must be between 2 and 6 characters and contain a placeholder:
     %s for  lowercase region, for example: eu
     %S for uppercase region, for example: EU

Options (ACP User Profile)

  • Unlink all Battlenet’s Oauths at once on a per user basis.

Buttons

  • Buttons got a custom CSS file for you to improve or change at will.

Image

Last edited by 3Di on 14 May 2022, 23:59, edited 1 time in total.
Reason: Updated conditions.

I’m with 🇺🇦 Ukraine


User avatar
3Di
Founder
Founder
Points: 1 639,16 
Posts: 2450
Joined: 12 Mar 2018, 20:10
Location: Milan (IT) Frankfurt (DE)

[💶][2.0.1] Battle.net OAuth2 Full

Post by 3Di »

Requirements

  1. Go to https://develop.battle.net/access/clients

  2. Login and create a New Client for your forum,

  3. Specify the “Client name” for your site

  4. Specify the “Redirect URIs” as

    • https://your_site/ucp.php?mode=login&login=external&oauth_service=studio_battlenet_us

    • https://your_site/ucp.php?mode=login&login=external&oauth_service=studio_battlenet_en

    • https://your_site/ucp.php?mode=login&login=external&oauth_service=studio_battlenet_cn

    • https://your_site/ucp.php?mode=login&login=external&oauth_service=studio_battlenet_apac

  5. Take the Key (Client ID) and Secret (Client Secret) provided and enter them in
    ACP under Client Communication -> Authentication in the Battle.Net fields.

  6. Select an authentication method: OAuth

  7. You can use all or just some of the Regions ;)

ACP-user-registration-settings.png
ACP-authentication.png
ACP-user-profile.png
UCP-links.png
You do not have the required permissions to view the files attached to this post.

I’m with 🇺🇦 Ukraine


User avatar
3Di
Founder
Founder
Points: 1 639,16 
Posts: 2450
Joined: 12 Mar 2018, 20:10
Location: Milan (IT) Frankfurt (DE)

[💶][2.0.1] Battle.net OAuth2 Full

Post by 3Di »

Download link (slug) updated, see first post.

Sorry for the previous inconvenience. :geek:

I’m with 🇺🇦 Ukraine