Skip to main content

Switch

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

Prerequisites

1. Register for an account and create a channel

Games should apply for Nintendo developer accounts on their own, create their game app using the developer account, then enter respective configurations on Player Network.

caution

Games must apply a different set of client ID and client secret for the development version and release version to deploy to different server environments.

For more information, see The Client ID and Secret and Nintendo Switch Independent Server Setup Manual.

FieldTypeDescription
switch_app_idstringSwitch app ID
redirect_uristringLogin redirect URI for mobile devices
client_idstringSwitch assigned client ID
client_secretstringSwitch assigned client secret
Create Product
  1. Log in to Nintendo Developer Portal.

  2. Go to MY PRODUCTS.

  3. In the Products section, click Create Product.

    Image: Nintendo Products

    note

    Select a region other than China.

Issue Game Code
  1. Go to the specific products page.

  2. From the top right corner, click Issue Game Code to generate switch_app_id.

    Image: Issue Game Code

Enter socket and HTTP communication usage

If it is not a stand-alone game, the app description says "There is communication with the original server", then add a project with the following information.

Apply for client_id and client_secret
  1. Enter OMAS2 with Nintendo Developer ID and password.

  2. Enter the required information as shown in the image.

    Image: OMAS2 application and Nintendo linking

    note

    If the app is not open to China market, do not enter China in the field marked by number 4.

    In the testing stage, you may enter any redirect URI in the field marked by number 6. However, games should update this field to the actual redirect URI before releasing the game. This field can be modified after the application is completed.

  3. Get client_id and client_secret once the application is approved.

Get app configuration for Nintendo

Contact business representatives from the Nintendo Collaboration Department to apply for a Nintendo app and get the corresponding app configuration information, which is the applicationId.

  1. Create an account for Player Network Console.
  2. Create a new project for your game, or join an existing one.
  3. Download the SDK.
  4. Integrate the SDK.
  5. Add Nintendo as an authentication method for your project on Player Network Console.

Step 1: Complete INTL Configurations

info

Version requirements:
Nintendo SDK 9.41
Unity 2019.3.13f1

Through the non-editable SwitchPreProcess.cs script, INTLSDK copies the configuration files INTLConfig.ini and INTLResultMsg.json to the StreamingAssets folder, then packages them together into the NSP file, which can then be read by INTLSDK.

The NSP file structure is as follows:

Image: NSP file structure