How to enable seamless authorization
How it works
When a user is logged in to a website that distributes a launcher, the launcher account is automatically logged in.
Who can use it
Partners who have already integrated Launcher and Login and connected OAuth 2.0 authentication.
How to get it
To enable seamless authorization, implement the following:
- Retrieval of a one-time password.
- Adding a user’s one-time password to the launcher installer can be done in one of the following ways:
Retrieval of a one-time password
To implement obtaining a one-time password, make a POST request to the URL addresshttps://launcher.xsolla.com/otp
. In the request body, pass a JSON with the following parameters:refresh_token
- user refresh token. Required.access_token
- user access token. Required.
Note
refresh_token
and access_token
parameters’ values cannot be empty.Copy
curl -X POST "https://launcher.xsolla.com/otp" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"access_token\": \"string\", \"refresh_token\": \"string\"}"
Adding the one-time password to the installer’s name
The received one-time password is a 36-character string in UUID format. Implement adding the one-time password to the installation file name when downloading in the following format:LauncherName_<OTP>.exe
, where <OTP>
is the one-time password.Creation of a link for the launcher installer download through the data enrichment service
The received one-time password is a 36-character string in UUID format. To create a download link for the launcher installer through the data enrichment service, follow these steps:- Obtain the download link for the launcher installer in Publisher Account.
- Modify the obtained link as follows:
- Replace the domain with
dl.launcher.xsolla.com
. - Add the user’s one-time password to the link, as shown in the example below.
- Replace the domain with
Example of a launcher installer download link:
https://dl.launcher.xsolla.com/xlauncher-builds/xsolla-launcher-update/<launcher_generation_id>/bin/web_installer.exe?otp=<your_generated_otp>
, where <your_generated_otp>
is the user’s one-time password.
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.