Error when calling authentication method
Issue description
The issue appears when you call user authentication method from the code, or when starting the application and trying to authenticate the user. When this occurs, the following error message is displayed:
Copy
1Request is missing required parameter, includes invalid parameter value, includes parameter more than once, or is malformed.
The problem occurs in the following cases:
- The user redirect URI is not specified in Publisher Account.
- There are different user redirect URIs in Publisher Account and in the SDK settings.
The problem occurs in the following cases:
- The user redirect URI is not specified in your account.
- There are different user redirect URIs in your account and in the SDK settings.
Fix
To set up the new OAuth 2.0 client, follow the instructions.
To specify or change the redirect URI for an already configured OAuth 2.0 client:
- Open your project in Publisher Account and go to the Players > Login section.
- Click Configure in the pane of a Login project.
- Go to the Security block and select the OAuth 2.0 section.
- Click on the pencil icon in the line of the required OAuth 2.0 client.
- Specify OAuth 2.0 redirect URIs (a path in the application the user is redirected to after successful authentication, email confirmation, or password reset). You can specify multiple valid URIs.
- Open the project in your account and go to the Players > Login section.
- Click Configure in the pane of a Login project.
- Go to the Security block and select the OAuth 2.0 section.
- Click on the pencil icon in the line of the required OAuth 2.0 client.
- Specify OAuth 2.0 redirect URIs (a path in the application the user is redirected to after successful authentication, email confirmation, or password reset). You can specify multiple valid URIs.
- Open the project in your account and go to the Players > Login section.
- Click Configure in the pane of a Login project.
- Go to the Security block and select the OAuth 2.0 section.
- Click on the pencil icon in the line of the required OAuth 2.0 client.
- Specify OAuth 2.0 redirect URIs (a path in the application the user is redirected to after successful authentication, email confirmation, or password reset). You can specify multiple valid URIs.
- Open the project in your account and go to the Players > Login section.
- Click Configure in the pane of a Login project.
- Go to the Security block and select the OAuth 2.0 section.
- Click on the pencil icon in the line of the required OAuth 2.0 client.
- Specify OAuth 2.0 redirect URIs (a path in the application the user is redirected to after successful authentication, email confirmation, or password reset). You can specify multiple valid URIs.
- Open the project in your account for mobile games and go to the Other tools > Login section.
- Click Configure in the pane of a Login project.
- Go to the Security block and select the OAuth 2.0 section.
- Click on the pencil icon in the line of the required OAuth 2.0 client.
- Specify OAuth 2.0 redirect URIs (a path in the application the user is redirected to after successful authentication, email confirmation, or password reset). You can specify multiple valid URIs.
Notice
The URI must match one of the following schemes:
- For desktop or web applications, the URI must start with
https://. By default, the SDK useshttps://login.xsolla.com/api/blank. Specify this URI or use your own. - For Android applications, specify the path as
app://xlogin.<ANDROID_PACKAGE_NAME>, where<ANDROID_PACKAGE_NAME>is the package name of the Android application. - For iOS applications, specify the path as
app://xlogin.<BUNDLE_ID>, where<BUNDLE_ID>is the iOS application identifier.
The URI must match the value specified in the SDK settings (Window > Xsolla > Edit Settings > Inspector ) in the Callback URL field. If the Callback URL field is empty, Edit > Project Settings > Player > Android (iOS) > Other Settings > Bundle Identifier . The same value must be added in Publisher Account in the Login > your Login project > Security > OAuth 2.0 section.
app://xlogin.<APP_ID> is used for redirection, where <APP_ID> is the application ID from The URI must match the value specified in the SDK settings (Window > Xsolla > Edit Settings > Inspector ) in the Callback URL field. If the Callback URL field is empty, Edit > Project Settings > Player > Android (iOS) > Other Settings > Bundle Identifier . The same value must be added in your account in the Login > your Login project > Security > OAuth 2.0 section.
app://xlogin.<APP_ID> is used for redirection, where <APP_ID> is the application ID from The URI must match the value specified in the SDK settings (Window > Xsolla > Edit Settings > Inspector ) in the Callback URL field. If the Callback URL field is empty, Edit > Project Settings > Player > Android (iOS) > Other Settings > Bundle Identifier . The same value must be added in your account for mobile games in the Other tools > Login > your Login project > Security > OAuth 2.0 section.
app://xlogin.<APP_ID> is used for redirection, where <APP_ID> is the application ID from - Click Save changes.
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.