Set up the X console
Overview
To provide login with an X account in a web app, you must check values in the X Developer Portal and register them in Hive Console. This document describes where and how to check each value and the Hive Console screens where you register the values. Login settings explains how to enter and save the values on the Hive Console screens.
X is not a store where you distribute apps; it is an authentication provider used only for login. Therefore, you do not register a store App ID or set up payment integration. However, the login settings of Hive Console pass values to the app based on the App ID, so if you have not created an App ID yet, first create one in Create an App ID.
Login integration
X login works as follows: the Hive Axyl server checks the authentication result received from X. For X login to work in your web app, you must register the Client ID and Client Secret used for this check in Hive Console.
1. Check the Client ID and Client Secret
The Client ID and Client Secret are values that X uses to identify the app that sent a login request, and they are issued together when you register an app in the X Developer Portal. If you have not created an app yet, first create a project and an app in the X Developer Portal. The app type must be Web App, and it must be a confidential client that has a Client Secret.
- Go to the X Developer Portal.
- Select the target app in Apps.
- Go to OAuth 2.0 Keys.
- Copy the value shown in Client ID. This value is the Client ID to register in Hive Console.
-
Copy the value shown in Client Secret. This value is the Client Secret to register in Hive Console.
Do not put the Client Secret in the app code
Enter the Client Secret only in Hive Console.
2. Set the Callback URI and Scope
For X login to work, you must also set the Callback URI and Scope in the X Developer Portal. Register the following two addresses exactly as they are in Callback URI.
- The callback page address. Example:
https://game.example.com/callback.html - The web app address. Example:
https://game.example.com/play
Request users.read tweet.read as the scope.
For what the callback page and the web app do, see Prepare the redirect URI.
3. Go to the Hive Console settings
For how to register the credentials you checked and enable X(Twitter) login, see X(Twitter) login credentials.
Next steps
- In X Step 1. Set up the integration, upload the callback page.