Redirects the user to the page for authentication via the specified social network.
provider_name required | string Name of the social network connected to Login in Publisher Account. Can be: If you store user data in PlayFab, only |
projectId required | string <uuid> Login project ID from Publisher Account. |
login_url | string URL to redirect the user to after account confirmation, successful authentication, two-factor authentication configuration, or password reset confirmation. Must be identical to the Callback URL specified in the URL block of Publisher Account. For the scenario of a login error, the value should be identical to the the Error callback URL specified in the URL block of Publisher Account. To find the settings, go to Login > your Login project and select the Callback URLs section in the upper block. Required if there are several Callback URLs. |
fields | Array of strings non-empty List of parameters which must be requested from the user or social network additionally and written to the JWT. The parameters must be separated by a comma. For example, When the
After the email is inputted, the user receives an email confirmation message. To disable email confirmation, please contact your Customer Success Manager. |
payload | string Your custom data. The value of the parameter will be returned in the |
with_logout | string Default: "0" Shows whether to deactivate the existing user JWT values and activate the one generated by this call. Can have the following values:
|
locale | string >= 2 characters Region in the
The list of social networks will be sorted from most to least used, according to the variable value. |
phone_only | boolean Default: false Arrange xsolla wallet form behaivior values:
|
Redirection
Bad Request
Bad Request
Not Found
Unprocessable Entity
Too Many Requests
curl --request GET \ --url 'https://login.xsolla.com/api/social/{provider_name}/login_redirect?projectId=SOME_STRING_VALUE&login_url=SOME_STRING_VALUE&fields=SOME_ARRAY_VALUE&payload=SOME_STRING_VALUE&with_logout=0&locale=SOME_STRING_VALUE&phone_only=false'
{- "error": {
- "code": "003-061",
- "description": "Object not found.",
- "details": { }
}
}