SDK para Unity (PC, web) / Establecer el proyecto básico de Login
  Volver a Documentos

SDK para Unity (PC, web)

Establecer el proyecto básico de Login

Nota
If you want to use your own authorization system, connect the standard Login project to your project without additional settings and implement getting the user JWT on the back end of your application.

Establecer el método de Inicio de sesión (Login)

  1. Open your project in Publisher Account.
  2. Click Connect in the Login pane or select Login in the side menu.
  3. Click Create Login project.
  1. Select Standard Login project and click Create and set up. Wait until your new Login project is created. Then you will see the project settings navigation page.
  2. In the Login methods block on the navigation page, select the method that suits your game best and click Configure.
  1. 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.
  1. Click Save changes.
  1. Set up a social login (optional):
    1. Click the name of your Login project in breadcrumb trail to return to the navigation page.
    2. Go to the Authentication block and select the Social login section.
    3. Connect social networks that users will be able to use to sign up and log into the application:
      • To connect the desired social network, click the ⚙ icon and select Connect.
      • To connect several social networks at once, select the required panes (their borders will turn green). Then, from the Manage drop-down menu, select Connect.
      • To connect all available social networks at once, click Select all. Then, from the Manage drop-down menu, select Connect.
  1. Change the user data storage (optional). User data is stored and processed on the Xsolla’s side by default. If you want to connect PlayFab, Firebase, or your own custom storage, follow these instructions: Connect user data storage.

During the integration process, you will need your Login ID. To get it, click the name of your Login project in breadcrumb trail to return to the navigation page, and click Copy ID beside the name of the Login project.

Configurar el cliente de OAuth 2.0

  1. Select the Login project and click Configure, or click the name of your Login project in the breadcrumb trail to return to the navigation page.
  2. Go to the Security block and select the OAuth 2.0 section.
  3. Click Add OAuth 2.0 client.
  4. Specify OAuth 2.0 redirect URIs (paths in the application the user is redirected to after successful authentication, email confirmation, or password reset). You can specify multiple valid URIs.
  5. Click Connect.
Aviso
To redirect users to a mobile application, the URI must match one of the following schemes:

During the integration process, you will need an OAuth 2.0 client ID. It can be found in Publisher Account in the Login > your Login project > Security > OAuth 2.0 section.

¿Te ha resultado útil este artículo?
¡Gracias!
¿Hay algo en lo que podamos mejorar? Mensaje
Lo sentimos
Por favor, cuéntanos por qué no te ha resultado útil este artículo. Mensaje
¡Gracias por tu mensaje!
Nos ayudará a mejorar tu experiencia.
Última actualización: 10 de Octubre de 2023

¿Has encontrado una errata u otro error de texto? Selecciona el texto y pulsa Ctrl+Intro.

Informar de un problema
Nos esforzamos por ofrecer contenido de calidad. Tus comentarios nos ayudan a mejorar.
Déjanos tu correo electrónico para que te podamos responder
¡Gracias por tu mensaje!