Skip to main content

Web

This article guides you through setting up DMM as an identity provider, enabling your website to access Player Network authentication services.

Prerequisites

1. Set up the DMM app

Contact DMM tech support to obtain a developer account with relevant permissions and app parameters.

Required app parameters:

  • App ID
  • Secret key
  • Consumer key
  • Consumer secret
  • Authentication client ID
  • Authentication client secret
  1. Create an account for Player Network Console.
  2. Create a new project for your game, or join an existing one.
  3. Add DMM as an authentication method for your project on Player Network Console.
note

For more details about integrating the SDK for other third-party channels, see JavaScript SDK.

Step 1: Install the JavaScript SDK

caution

Install the SDK package from the production environment when launching the game. The SDK package from the test environment is only used for integration testing.

Install the JavaScript SDK from npm or CDN.

$ npm install @intlsdk/account-api

Step 2: Instantiate the SDK

caution

Set env to the test environment during the integration testing and env to the corresponding production environment when launching the game.

const accountApi = new IntlgameAccountApi({
env: "test", // SDK environment
gameID: 11,
});
ParameterTypeDescriptionRemark
envstringSDK environment
For more information, see Retrieve cluster information.
Required
gameIDnumberUnique game ID assigned by Player NetworkRequired

Step 3: Implement web login

Follow the login workflow to implement web login.

For more information on the third-party login APIs, see:

APIFunction
ThirdAuthorizeThird-party authorization
IntlAuthorizePlayer Network account authorization
IntlLogoutLogs out