Skip to content
Xsolla Login plugin for Unreal Engine 4
Branch: develop
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Config
Content
Documentation Add info about token usage Apr 23, 2019
Extras Insomnia test workspace. Close #21 Apr 23, 2019
Resources
Source
.gitignore Initial plugin structure Mar 25, 2019
README.md
XsollaLogin.uplugin Add WhitelistPlatforms and content filter #38 May 6, 2019

README.md

Xsolla Login SDK UE4

Development repository for the Xsolla Login SDK for Unreal Engine 4 platforms.

Overview

Login is a single sign-on tool that authenticates and secures user passwords on behalf of partners who develop video games. Please check Login API Documentation for full integration info.

Installation

  1. Download the plugin source from the latest release.
  2. Make a Plugins/XsollaLogin folder under your game project directory and copy plugin source into it.
  3. Compile your game project normally. Unreal Build Tool will detect the plugins and compile them as dependencies to your game.
  4. Launch the editor.
  5. Go to Project Settings -> Plugins -> Xsolla Login SDK and set Project Id as Login ID from Publisher Account.

How To

Registrate User

Adds a new user to the database. The user will receive an account confirmation message to the specified e-mail.

SCREENSHOT

Authentication by Username and Password

Authenticates the user by the username and password specified.

SCREENSHOT

Use Login Data

Once user is athenicated the login data is stored in XsollaLoginController. Use GetLoginData() function to get access to it.

SCREENSHOT

If RememberMe option was set the data will be saved locally and loaded from cache once app is started. No manual save is required.

User Password Reset

Resets the user's password.

SCREENSHOT

Plugin Demo

Check the /Maps/Demo example with plugin usage widget demo inside.

SCREENSHOT

JWT Validation

A JWT signed by the secret key is generated for each successfully authenticated user. To make sure that the JWT has not expired and belongs to the user in your project, you need to validate its value.

Validation is optional for client-side, but required for server-side usage (f.e. for in-app pushaces confirmation). See TokenVerificator example.

To enable auto-validation of the JWT on the client-side just set the VerifyTokenURL parameter with your server validation url, and it will be validated on user login event.

You can’t perform that action at this time.