Set up Login project in Publisher Account
Xsolla Login provides users with various ways to log into your application. To set up the Login project:
- In your project in Publisher Account, go to the Players > Login section.
- Click + New Login project and select the standard option.
- In the Login methods block, select the method that suits your game best and click Configure. The Login product offers three options for your games:
- Classic login — users log into the game by providing their username and password. In addition, users can log in using one of their social networks.
- Passwordless login — users log into the game using one-time codes or links sent to their email address or phone number. Login via social networks is also supported.
- Social login — users enter the game only through social networks.
Refer to the instructions for creating a project and ensuring compliance with legal requirements.
Note
Passwordless login is the recommended option. It is suitable for most games, ensures data security, and is easy to implement. You can change the login method later by clicking the Change Login method link. Previously saved settings will not be lost.
- In the Login method block, add a callback URL where the user is redirected to after successful authentication.
- In the Security block, click OAuth 2.0.
- Add a new OAuth 2.0 client:
- Click Add OAuth 2.0 client.
- Select the authentication option that suits your application logic.
- For the Public and Confidential options, enter
https://login.xsolla.com/api/social/oauth2/callbackin the OAuth 2.0 redirect URIs field. - Click Connect.
- Enable user authentication with Xsolla account:
- Go to the Authentication section and select the Social login section.
- Select Xsolla from the list of social networks.
- Click the ⚙ icon and select Settings.
- Fill in the following fields:
- Application ID — the Xsolla account OAuth 2.0 client identifier you received from Xsolla.
- Application secret key — the Xsolla account OAuth 2.0 key you received from Xsolla.
- Your website link — the website from which Xsolla servers receive a request to exchange an authorization code for an authorization token.
- Click Connect.
Notice
In order to correctly integrate the Cloud Gaming solution, make sure that all other social networks are disabled in your Login project.
Note
For detailed information, refer to the Login documentation:
Was this article helpful?
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.Found a typo or other text error? Select the text and press Ctrl+Enter.