UXsollaLoginSubsystem

Inherits from UGameInstanceSubsystem

Public Functions

Name
UXsollaLoginSubsystem ()
virtual voidInitialize (FSubsystemCollectionBase & Collection) override
virtual voidDeinitialize () override
voidInitialize (const FString & InProjectId, const FString & InLoginId, const FString & InClientId)
Initializes controller with provided Project ID and Login ID (use to override project settings).
voidRegisterUser (const FString & Username, const FString & Password, const FString & Email, const FString & State, const FString & Locale, const bool PersonalDataProcessingConsent, const bool ReceiveNewsConsent, const TMap< FString, FString > & AdditionalFields, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback)
Creates a new user account in the application and sends a sign-up confirmation email to the specified email address.
voidResendAccountConfirmationEmail (const FString & Username, const FString & State, const FString & Locale, const FOnRequestSuccess & SuccessCallback, const FOnAuthError & ErrorCallback)
Resends a sign-up confirmation email to the specified email address.
voidAuthenticateUser (const FString & Username, const FString & Password, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback, const bool bRememberMe =false)
Authenticates the user by the username/email and password specified via the authentication interface.
voidAuthWithXsollaWidget (UObject * WorldContextObject, UXsollaLoginBrowserWrapper *& BrowserWidget, const FOnAuthUpdate & SuccessCallback, const FOnAuthCancel & CancelCallback, const FOnAuthError & ErrorCallback, const bool bRememberMe =false, const FString & Locale =TEXT(""), const FString & State =TEXT(“xsollatest”))
Authenticates the user with Xsolla Login widget.
voidResetUserPassword (const FString & User, const FString & Locale, const FOnRequestSuccess & SuccessCallback, const FOnAuthError & ErrorCallback)
Resets the user’s current password and sends an email to change the password to the email address specified during sign-up.
voidValidateToken (const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback)
Internal request for token validation (called with each auth update automatically)
voidGetSocialAuthenticationUrl (const FString & ProviderName, const FString & State, const FOnSocialUrlReceived & SuccessCallback, const FOnAuthError & ErrorCallback)
Returns URL for authentication via the specified social network in a browser.
voidLaunchSocialAuthentication (UObject * WorldContextObject, UUserWidget *& BrowserWidget, const bool bRememberMe =false)
Opens social authentication URL in the browser.
voidLaunchNativeSocialAuthentication (const FString & ProviderName, const FOnAuthUpdate & SuccessCallback, const FOnAuthCancel & CancelCallback, const FOnAuthError & ErrorCallback, const bool bRememberMe =false, const FString & State =TEXT(“xsollatest”))
Opens the specified social network mobile app (if available) in order to authenticate the user.
voidAuthenticateViaSocialNetwork (const FString & ProviderName, const FOnAuthUpdate & SuccessCallback, const FOnAuthCancel & CancelCallback, const FOnAuthError & ErrorCallback, const bool bRememberMe =false, const FString & State =TEXT(“xsollatest”))
Authenticates user via social networks.
voidSetToken (const FString & Token)
Sets a new value of a token (used when the token is obtained via social network authentication, etc.).
voidRefreshToken (const FString & RefreshToken, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback)
Refreshes the token in case it is expired.
voidExchangeAuthenticationCodeToToken (const FString & AuthenticationCode, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback)
Exchanges the user authentication code to a valid JWT.
voidAuthenticateWithSessionTicket (const FString & ProviderName, const FString & SessionTicket, const FString & Code, const FString & AppId, const FString & State, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback, const FString & Scope =TEXT(""))
Authenticates a user by exchanging the session ticket from Steam, Xbox, or Epic Games to the JWT.
voidGetUserAttributes (const FString & AuthToken, const FString & UserId, const TArray< FString > & AttributeKeys, const FOnUserAttributesUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns a list of particular user’s attributes with their values and descriptions.
voidGetUserReadOnlyAttributes (const FString & AuthToken, const FString & UserId, const TArray< FString > & AttributeKeys, const FOnUserAttributesUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns list of user read-only attributes.
voidModifyUserAttributes (const FString & AuthToken, const TArray< FXsollaUserAttribute > & AttributesToModify, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback)
Updates the values of user attributes with the specified IDs.
voidRemoveUserAttributes (const FString & AuthToken, const TArray< FString > & AttributesToRemove, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback)
Removes user attributes with the specified IDs.
voidCreateAccountLinkingCode (const FString & AuthToken, const FOnCodeReceived & SuccessCallback, const FOnError & ErrorCallback)
Creates the code for linking the platform account to the existing main account when the user logs in to the game via a gaming console.
voidCheckUserAge (const FString & DateOfBirth, const FOnCheckUserAgeSuccess & SuccessCallback, const FOnAuthError & ErrorCallback)
Checks user age for a particular region.
voidLinkEmailAndPassword (const FString & AuthToken, const FString & Email, const FString & Password, const bool ReceiveNewsConsent, const FString & Username, const FOnLinkEmailAndPasswordSuccess & SuccessCallback, const FOnError & ErrorCallback)
Adds a username, email address, and password, that can be used for authentication, to the current account.
voidLinkDeviceToAccount (const FString & AuthToken, const FString & PlatformName, const FString & DeviceName, const FString & DeviceId, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback)
Links the specified device to the current user account.
voidUnlinkDeviceFromAccount (const FString & AuthToken, const int64 DeviceId, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback)
Unlinks the specified device from the current user account.
voidAuthenticateViaDeviceId (const FString & DeviceName, const FString & DeviceId, const FString & State, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback)
Authenticates the user via a particular device ID.
voidAuthViaAccessTokenOfSocialNetwork (const FString & AuthToken, const FString & AuthTokenSecret, const FString & OpenId, const FString & ProviderName, const FString & State, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback)
Authenticates the user with the access token using social network credentials.
voidStartAuthByPhoneNumber (const FString & PhoneNumber, const FString & State, const FOnStartAuthSuccess & SuccessCallback, const FOnAuthError & ErrorCallback)
Starts user authentication and sends an SMS with a one-time code and a link to the specified phone number (if login via magic link is configured for the Login project).
voidCompleteAuthByPhoneNumber (const FString & Code, const FString & OperationId, const FString & PhoneNumber, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback)
Completes authentication after the user enters a one-time code or follows a link received by SMS.
voidStartAuthByEmail (const FString & Email, const FString & State, const FOnStartAuthSuccess & SuccessCallback, const FOnAuthError & ErrorCallback)
Starts user authentication and sends an email with a one-time code and a link to the specified email address (if login via magic link is configured for the Login project).
voidCompleteAuthByEmail (const FString & Code, const FString & OperationId, const FString & Email, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback)
Completes authentication after the user enters a one-time code or follows a link received in an email.
voidGetAuthConfirmationCode (const FString & UserId, const FString & OperationId, const FOnAuthCodeSuccess & SuccessCallback, const FOnAuthCodeTimeout & TimeoutCallback, const FOnAuthError & ErrorCallback)
Returns confirmation code for completing authentication via email or phone number.
voidGetUserDetails (const FString & AuthToken, const FOnUserDetailsUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns user details.
voidModifyUserDetails (const FString & AuthToken, const FString & Birthday, const FString & FirstName, const FString & LastName, const FString & Gender, const FString & Nickname, const FOnUserDetailsUpdate & SuccessCallback, const FOnError & ErrorCallback)
Updates the specified user’s information.
voidGetUserEmail (const FString & AuthToken, const FOnUserDetailsParamUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns the user’s email.
voidGetUserPhoneNumber (const FString & AuthToken, const FOnUserDetailsParamUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns user phone number that is used for two-factor authentication.
voidModifyUserPhoneNumber (const FString & AuthToken, const FString & PhoneNumber, const FOnUserDetailsParamUpdate & SuccessCallback, const FOnError & ErrorCallback)
Changes the user’s phone number that is used for two-factor authentication.
voidRemoveUserPhoneNumber (const FString & AuthToken, const FString & PhoneNumber, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback)
Deletes the user’s phone number that is used for two-factor authentication.
voidModifyUserProfilePicture (const FString & AuthToken, UTexture2D *const Picture, const FOnUserDetailsParamUpdate & SuccessCallback, const FOnError & ErrorCallback)
Changes the user’s avatar.
voidRemoveProfilePicture (const FString & AuthToken, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback)
Deletes the user’s avatar.
voidGetFriends (const FString & AuthToken, const EXsollaFriendsType Type, const EXsollaUsersSortCriteria SortBy, const EXsollaUsersSortOrder SortOrder, const FOnUserFriendsUpdate & SuccessCallback, const FOnError & ErrorCallback, const FString & After, const int Limit =20)
Returns user friends data.
voidModifyFriends (const FString & AuthToken, const EXsollaFriendAction Action, const FString & UserID, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback)
Modifies relationships with the specified user.
voidGetSocialAuthLinks (const FString & AuthToken, const FString & Locale, const FOnSocialAuthLinksUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns list of links for social authentication enabled in Publisher Account.
voidGetSocialFriends (const FString & AuthToken, const FString & Platform, const FOnUserSocialFriendsUpdate & SuccessCallback, const FOnError & ErrorCallback, const int Offset =0, const int Limit =500, const bool FromThisGame =false)
Returns user friends data from a social provider.
voidGetUsersFriends (const FString & AuthToken, const FString & Platform, const FOnCodeReceived & SuccessCallback, const FOnError & ErrorCallback)
Returns friends on the server.
voidGetUserProfile (const FString & AuthToken, const FString & UserID, const FOnUserProfileReceived & SuccessCallback, const FOnError & ErrorCallback)
Returns specified user public profile information.
voidGetUsersDevices (const FString & AuthToken, const FOnUserDevicesUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns a list of devices linked to the current user account.
voidSearchUsersByNickname (const FString & AuthToken, const FString & Nickname, const FOnUserSearchUpdate & SuccessCallback, const FOnError & ErrorCallback, const int Offset =0, const int Limit =100)
Searches for users with the specified nickname.
voidGetUrlToLinkSocialNetworkToUserAccount (const FString & AuthToken, const FString & ProviderName, const FOnSocialAccountLinkingHtmlReceived & SuccessCallback, const FOnError & ErrorCallback)
Links a social network that can be used for authentication to the current account.
voidLinkSocialProvider (UObject * WorldContextObject, const FString & AuthToken, const FString & ProviderName, const FOnSocialLinkingSuccess & SuccessCallback, const FOnError & ErrorCallback)
Links a social network that can be used for authentication to the current account.
voidUnlinkSocialProvider (const FString & AuthToken, const FString & ProviderName, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback)
Unlinks a social network from the user account.
voidGetLinkedSocialNetworks (const FString & AuthToken, const FOnLinkedSocialNetworksUpdate & SuccessCallback, const FOnError & ErrorCallback)
Returns the list of linked social networks.
voidLogoutUser (const FString & AuthToken, const EXsollaSessionType Sessions, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback)
Logs the user out and deletes the user session according to the value of the sessions parameter (OAuth 2.0 only).
FXsollaLoginDataGetLoginData () const
Returns user login state data.
voidSetLoginData (const FXsollaLoginData & Data, const bool ClearCache =true)
Sets user login state data.
voidUpdateAuthTokenData (const FString & AccessToken, int ExpiresIn, const FString & RefreshToken, bool bRememberMe =true)
Updates user auth token data.
voidDropLoginData (const bool ClearCache =true)
Drops cache and cleans login data.
voidLoadSavedData ()
Loads save game and extract data.
voidSaveData ()
Saves cached data or resets it if RememberMe is false.
voidHandleRequestError (const XsollaHttpRequestError & ErrorData, FErrorHandlersWrapper ErrorHandlersWrapper)

Protected Functions

Name
voidDefault_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnRequestSuccess SuccessCallback, FOnAuthError ErrorCallback)
voidDefaultWithHandlerWrapper_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnRequestSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidUserLogin_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback)
voidTokenVerify_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback)
voidSocialAuthUrl_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnSocialUrlReceived SuccessCallback, FOnAuthError ErrorCallback)
voidGetUserAttributes_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserAttributesUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetReadOnlyUserAttributes_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserAttributesUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidAccountLinkingCode_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCodeReceived SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidCheckUserAge_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCheckUserAgeSuccess SuccessCallback, FOnAuthError ErrorCallback)
voidDeviceId_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback)
voidRefreshToken_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback)
voidInnerRefreshToken_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnLoginDataUpdate SuccessCallback, FOnLoginDataError ErrorCallback)
voidSessionTicket_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback)
voidAuthViaAccessTokenOfSocialNetwork_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback)
voidStartAuth_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnStartAuthSuccess SuccessCallback, FOnAuthError ErrorCallback)
voidCompleteAuthByPhoneNumber_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback)
voidCompleteAuthByEmail_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback)
voidGetAuthConfirmationCode_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthCodeSuccess SuccessCallback, FOnAuthCodeTimeout TimeoutCallback, FOnAuthError ErrorCallback)
voidUserDetails_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserDetailsUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidUserEmail_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserDetailsParamUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidUserPhoneNumber_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserDetailsParamUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidModifyPhoneNumber_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserDetailsParamUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidRemovePhoneNumber_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnRequestSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidUserProfilePicture_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserDetailsParamUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidUserProfilePictureRemove_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnRequestSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidUserFriends_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserFriendsUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidSocialAuthLinks_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnSocialAuthLinksUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidSocialFriends_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserSocialFriendsUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetUsersFriends_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCodeReceived SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidUserProfile_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserProfileReceived SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidUserSearch_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserSearchUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidSocialAccountLinking_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnSocialAccountLinkingHtmlReceived SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidLinkedSocialNetworks_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnLinkedSocialNetworksUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidGetUsersDevices_HttpRequestComplete (const FHttpRequestPtr HttpRequest, const FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserDevicesUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidLinkEmailAndPassword_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnLinkEmailAndPasswordSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidRegisterUser_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback)
voidLogoutUser_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnRequestSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper)
voidHandleOAuthTokenRequest (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, bool bSucceeded, FOnAuthError & ErrorCallback, FOnAuthUpdate & SuccessCallback)
Processes the request for obtaining/refreshing token using OAuth 2.0.
voidHandleUrlWithCodeRequest (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback)
Processes the request that returns URL with a code that can be exchanged to user token (OAuth 2.0).
voidHandleAskFieldsAuthentication (const FString & LoginUrl, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback)
Handles the “ask_fields” response from the authentication flow.
boolIsAdditionalInfoAskUrl (const FString & LoginUrl) const
Returns true if the provided URL redirects to the additional-info validation flow.
voidHandleAdditionalInfoAuthResult (const FString & AuthenticationCode, const FString & AuthenticationToken, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback)
Finalizes the additional-info authentication process using the received code or token and triggers the appropriate callback.
voidHandleAdditionalInfoAuthError (const FString & ErrorCode, const FString & ErrorDescription, const FOnAuthError & ErrorCallback)
voidHandleAdditionalInfoAuthCancel (const FOnAuthError & ErrorCallback)
boolTryMarkAdditionalInfoTerminal (const FString & Outcome)
voidBeginAdditionalInfoFlow ()
voidFinishAdditionalInfoFlow ()
voidHandleRequestOAuthError (XsollaHttpRequestError ErrorData, FOnAuthError ErrorCallback)
Returns true if the error occurs.
voidInnerRefreshToken (const FString & RefreshToken, const FOnLoginDataUpdate & SuccessCallback, const FOnLoginDataError & ErrorCallback)
voidSocialAuthUrlReceivedCallback (const FString & Url)
voidSocialLinkingUrlReceivedCallback (const FString & Url)

Protected Attributes

Name
FXsollaLoginDataLoginData
Keeps state of user login.

Friends

Public Functions Documentation

function UXsollaLoginSubsystem

Copy
Full screen
Small screen
1UXsollaLoginSubsystem()

function Initialize

Copy
Full screen
Small screen
1virtual void Initialize(
2    FSubsystemCollectionBase & Collection
3) override

function Deinitialize

Copy
Full screen
Small screen
1virtual void Deinitialize() override

function Initialize

Copy
Full screen
Small screen
1void Initialize(
2    const FString & InProjectId,
3    const FString & InLoginId,
4    const FString & InClientId
5)

Initializes controller with provided Project ID and Login ID (use to override project settings).

Parameters:

  • InProjectId New Project ID value from Publisher Account. It can be found in Publisher Account next to the name of your project.
  • InLoginId New Login ID value from Publisher Account. To get it, open Publisher Account, go to the Login > Dashboard section, and click Copy ID beside the name of the Login project.
  • InClientId New Client ID value from Publisher Account. It can be found in Publisher Account in the Login > your Login project > Security > OAuth 2.0 section.

function RegisterUser

Copy
Full screen
Small screen
 1void RegisterUser(
 2    const FString & Username,
 3    const FString & Password,
 4    const FString & Email,
 5    const FString & State,
 6    const FString & Locale,
 7    const bool PersonalDataProcessingConsent,
 8    const bool ReceiveNewsConsent,
 9    const TMap< FString, FString > & AdditionalFields,
10    const FOnAuthUpdate & SuccessCallback,
11    const FOnAuthError & ErrorCallback
12)

Creates a new user account in the application and sends a sign-up confirmation email to the specified email address.

Parameters:

  • Username Username.
  • Password Password.
  • Email Email address.
  • State Value used for additional user verification on backend. Must be at least 8 symbols long. xsollatest by default. Required for OAuth 2.0.
  • Locale Defines localization of the email the user receives.

The following languages are supported: Arabic (ar_AE), Bulgarian (bg_BG), Czech (cz_CZ), German (de_DE), Spanish (es_ES), French (fr_FR), Hebrew (he_IL), Italian (it_IT), Japanese (ja_JP), Korean (ko_KR), Polish (pl_PL), Portuguese (pt_BR), Romanian (ro_RO), Russian (ru_RU), Thai (th_TH), Turkish (tr_TR), Vietnamese (vi_VN), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Enlish (en_XX, default).

  • PersonalDataProcessingConsent Whether the user gave consent to processing of their personal data.
  • ReceiveNewsConsent Whether the user gave consent to receive the newsletters.
  • AdditionalFields Parameters used for extended registration forms.
  • SuccessCallback Called after successful user registration. Account confirmation message will be sent to the specified email address.
  • ErrorCallback Called after the request resulted with an error.

To complete registration, the user must follow the link from the email. More about the use cases .

function ResendAccountConfirmationEmail

Copy
Full screen
Small screen
1void ResendAccountConfirmationEmail(
2    const FString & Username,
3    const FString & State,
4    const FString & Locale,
5    const FOnRequestSuccess & SuccessCallback,
6    const FOnAuthError & ErrorCallback
7)

Resends a sign-up confirmation email to the specified email address.

Parameters:

  • Username Username.
  • State Value used for additional user verification on backend. Must be at least 8 symbols long. xsollatest by default. Required for OAuth 2.0.
  • Locale Defines localization of the email the user receives.

The following languages are supported: Arabic (ar_AE), Bulgarian (bg_BG), Czech (cz_CZ), German (de_DE), Spanish (es_ES), French (fr_FR), Hebrew (he_IL), Italian (it_IT), Japanese (ja_JP), Korean (ko_KR), Polish (pl_PL), Portuguese (pt_BR), Romanian (ro_RO), Russian (ru_RU), Thai (th_TH), Turkish (tr_TR), Vietnamese (vi_VN), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Enlish (en_XX, default).

  • SuccessCallback Called after successful sending of the request.
  • ErrorCallback Called after the request resulted with an error.

To complete registration, the user must follow the link from the email. More about the use cases .

function AuthenticateUser

Copy
Full screen
Small screen
1void AuthenticateUser(
2    const FString & Username,
3    const FString & Password,
4    const FOnAuthUpdate & SuccessCallback,
5    const FOnAuthError & ErrorCallback,
6    const bool bRememberMe =false
7)

Authenticates the user by the username/email and password specified via the authentication interface.

Parameters:

  • Username Username or email.
  • Password Password.
  • SuccessCallback Called after successful user authentication. Authentication data including the JWT will be received.
  • ErrorCallback Called after the request resulted with an error.
  • bRememberMe Whether the user agrees to save the authentication data. Default is false.

More about the use cases .

function AuthWithXsollaWidget

Copy
Full screen
Small screen
 1void AuthWithXsollaWidget(
 2    UObject * WorldContextObject,
 3    UXsollaLoginBrowserWrapper *& BrowserWidget,
 4    const FOnAuthUpdate & SuccessCallback,
 5    const FOnAuthCancel & CancelCallback,
 6    const FOnAuthError & ErrorCallback,
 7    const bool bRememberMe =false,
 8    const FString & Locale =TEXT(""),
 9    const FString & State =TEXT("xsollatest")
10)

Authenticates the user with Xsolla Login widget.

Parameters:

  • WorldContextObject The world context.
  • BrowserWidget Widget that shows the social network authentication form. Can be set in the project settings.
  • SuccessCallback Called after successful user authentication. Authentication data including the JWT will be received.
  • CancelCallback Called after user authentication was canceled.
  • ErrorCallback Called after user authentication resulted with an error.
  • bRememberMe Whether the user agrees to save the authentication data. false by default.
  • Locale (optional) Login widget UI language. Supported languages: Arabic (ar_AE), Bulgarian (bg_BG), Czech (cz_CZ), Filipino (fil-PH), English (en_XX), German (de_DE), Spanish (es_ES), French (fr_FR), Hebrew (he_IL), Indonesian (id-ID), Italian (it_IT), Japanese (ja_JP), Khmer (km-KH), Korean (ko_KR), Lao language ( lo-LA), Myanmar (my-MM), NepaliPolish (ne-NP), (pl_PL), Portuguese (pt_BR), Romanian (ro_RO), Russian (ru_RU), Thai (th_TH), Turkish (tr_TR), Vietnamese (vi_VN), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW). By default, the locale is determined by the user’s IP
  • State Value used for additional user verification on backend. Must be at least 8 symbols long. xsollatest by default. Required for OAuth 2.0.

function ResetUserPassword

Copy
Full screen
Small screen
1void ResetUserPassword(
2    const FString & User,
3    const FString & Locale,
4    const FOnRequestSuccess & SuccessCallback,
5    const FOnAuthError & ErrorCallback
6)

Resets the user’s current password and sends an email to change the password to the email address specified during sign-up.

Parameters:

  • User User identifier (name or email address depending on user data storage type).
  • Locale Defines localization of the email the user receives.

The following languages are supported: Arabic (ar_AE), Bulgarian (bg_BG), Czech (cz_CZ), German (de_DE), Spanish (es_ES), French (fr_FR), Hebrew (he_IL), Italian (it_IT), Japanese (ja_JP), Korean (ko_KR), Polish (pl_PL), Portuguese (pt_BR), Romanian (ro_RO), Russian (ru_RU), Thai (th_TH), Turkish (tr_TR), Vietnamese (vi_VN), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Enlish (en_XX, default).

  • SuccessCallback Called after successful user password reset.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function ValidateToken

Copy
Full screen
Small screen
1void ValidateToken(
2    const FOnAuthUpdate & SuccessCallback,
3    const FOnAuthError & ErrorCallback
4)

Internal request for token validation (called with each auth update automatically)

Parameters:

  • SuccessCallback Called after successful token validation.
  • ErrorCallback Called after the request resulted with an error.

function GetSocialAuthenticationUrl

Copy
Full screen
Small screen
1void GetSocialAuthenticationUrl(
2    const FString & ProviderName,
3    const FString & State,
4    const FOnSocialUrlReceived & SuccessCallback,
5    const FOnAuthError & ErrorCallback
6)

Returns URL for authentication via the specified social network in a browser.

Parameters:

  • ProviderName Name of a social network. Provider must be connected to Login in Publisher Account.

Can be amazon, apple, baidu, battlenet, discord, facebook, github, google, kakao, linkedin, mailru, microsoft, msn, naver, ok, paypal, psn, qq, reddit, steam, twitch, twitter, vimeo, vk, wechat, weibo, yahoo, yandex, youtube, or xbox.

  • State Value used for additional user verification on backend. Must be at least 8 symbols long. xsollatest by default. Required for OAuth 2.0.
  • SuccessCallback Called after URL for social authentication was successfully received.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function LaunchSocialAuthentication

Copy
Full screen
Small screen
1void LaunchSocialAuthentication(
2    UObject * WorldContextObject,
3    UUserWidget *& BrowserWidget,
4    const bool bRememberMe =false
5)

Opens social authentication URL in the browser.

Parameters:

  • WorldContextObject The world context.
  • BrowserWidget Widget to show the social network authentication form. Can be set in the project settings.
  • bRememberMe Whether the user agrees to save the authentication data. false by default.

More about the use cases .

function LaunchNativeSocialAuthentication

Copy
Full screen
Small screen
1void LaunchNativeSocialAuthentication(
2    const FString & ProviderName,
3    const FOnAuthUpdate & SuccessCallback,
4    const FOnAuthCancel & CancelCallback,
5    const FOnAuthError & ErrorCallback,
6    const bool bRememberMe =false,
7    const FString & State =TEXT("xsollatest")
8)

Opens the specified social network mobile app (if available) in order to authenticate the user.

Parameters:

  • ProviderName Name of the social network connected to Login in Publisher Account. Can be amazon, apple, baidu, battlenet, discord,facebook, github, google, kakao, linkedin, mailru, microsoft, msn, naver, ok, paypal, psn, qq, reddit, steam, twitch, twitter, vimeo, vk, wechat, weibo, yahoo, yandex, youtube, or xbox.
  • SuccessCallback Called after successful user authentication. Authentication data including the JWT will be received.
  • CancelCallback Called after user authentication was canceled.
  • ErrorCallback Called after user authentication resulted with an error.
  • bRememberMe Whether the user agrees to save the authentication data. Default is false.
  • State Value used for additional user verification on backend. Must be at least 8 symbols long. xsollatest by default. Required for OAuth 2.0.

function AuthenticateViaSocialNetwork

Copy
Full screen
Small screen
1void AuthenticateViaSocialNetwork(
2    const FString & ProviderName,
3    const FOnAuthUpdate & SuccessCallback,
4    const FOnAuthCancel & CancelCallback,
5    const FOnAuthError & ErrorCallback,
6    const bool bRememberMe =false,
7    const FString & State =TEXT("xsollatest")
8)

Authenticates user via social networks.

Parameters:

  • ProviderName Name of the social network connected to Login in Publisher Account. Can be amazon, apple, baidu, battlenet, discord,facebook, github, google, kakao, linkedin, mailru, microsoft, msn, naver, ok, paypal, psn, qq, reddit, steam, twitch, twitter, vimeo, vk, wechat, weibo, yahoo, yandex, youtube, or xbox.
  • SuccessCallback Called after successful user authentication. Authentication data including the JWT will be received.
  • CancelCallback Called after user authentication was canceled.
  • ErrorCallback Called after user authentication resulted with an error.
  • bRememberMe Whether the user agrees to save the authentication data. Default is false.
  • State Value used for additional user verification on backend. Must be at least 8 symbols long. xsollatest by default. Required for OAuth 2.0.

Method incapsulates web-based and native authentication methods.

function SetToken

Copy
Full screen
Small screen
1void SetToken(
2    const FString & Token
3)

Sets a new value of a token (used when the token is obtained via social network authentication, etc.).

Parameters:

  • Token User authorization token.

function RefreshToken

Copy
Full screen
Small screen
1void RefreshToken(
2    const FString & RefreshToken,
3    const FOnAuthUpdate & SuccessCallback,
4    const FOnAuthError & ErrorCallback
5)

Refreshes the token in case it is expired.

Parameters:

  • RefreshToken Token used to refresh the expired access token. Received when authorizing the user with username/password for the first time.
  • SuccessCallback Called after successful token refreshing. Refresh data including the JWT will be received.
  • ErrorCallback Called after request resulted with an error.

Works only when OAuth 2.0 is enabled.

function ExchangeAuthenticationCodeToToken

Copy
Full screen
Small screen
1void ExchangeAuthenticationCodeToToken(
2    const FString & AuthenticationCode,
3    const FOnAuthUpdate & SuccessCallback,
4    const FOnAuthError & ErrorCallback
5)

Exchanges the user authentication code to a valid JWT.

Parameters:

  • AuthenticationCode Access code received from several other OAuth 2.0 requests (example: code from social network authentication).
  • SuccessCallback Called after successful exchanging. Contains exchanged token.
  • ErrorCallback Called after request resulted with an error.

More about the use cases .

function AuthenticateWithSessionTicket

Copy
Full screen
Small screen
 1void AuthenticateWithSessionTicket(
 2    const FString & ProviderName,
 3    const FString & SessionTicket,
 4    const FString & Code,
 5    const FString & AppId,
 6    const FString & State,
 7    const FOnAuthUpdate & SuccessCallback,
 8    const FOnAuthError & ErrorCallback,
 9    const FString & Scope =TEXT("")
10)

Authenticates a user by exchanging the session ticket from Steam, Xbox, or Epic Games to the JWT.

Parameters:

  • ProviderName Platform on which the session ticket was obtained. Can be steam, xbox, or epicgames.
  • SessionTicket Session ticket received from the platform.
  • Code Code received from the platform.
  • AppId Platform application identifier.
  • State Value used for additional user verification on backend. Must be at least 8 symbols long. xsollatest by default. Required for OAuth 2.0.
  • SuccessCallback Called after successful user authentication with a platform session ticket. Authentication data including a JWT will be received.
  • ErrorCallback Called after the request resulted with an error.
  • Scope Request scope (e.g. “basic_profile”,“offline”, etc., empty by default).

More about the use cases .

function GetUserAttributes

Copy
Full screen
Small screen
1void GetUserAttributes(
2    const FString & AuthToken,
3    const FString & UserId,
4    const TArray< FString > & AttributeKeys,
5    const FOnUserAttributesUpdate & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Returns a list of particular user’s attributes with their values and descriptions.

Parameters:

  • AuthToken User authorization token.
  • UserId Identifier of a user whose public attributes should be requested. If not specified, the method returns attrubutes for the current user.
  • AttributeKeys List of attributes’ keys which you want to get. If not specified, the method returns all user’s attributes.
  • SuccessCallback Called after user attributes were successfully received.
  • ErrorCallback Called after the request resulted with an error.

Returns only user-editable attributes. More about the use cases .

function GetUserReadOnlyAttributes

Copy
Full screen
Small screen
1void GetUserReadOnlyAttributes(
2    const FString & AuthToken,
3    const FString & UserId,
4    const TArray< FString > & AttributeKeys,
5    const FOnUserAttributesUpdate & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Returns list of user read-only attributes.

Parameters:

  • AuthToken User authorization token.
  • UserId Identifier of a user whose attributes should be updated.
  • AttributeKeys List of attributes’ keys which you want to get. If not specified, the method returns all user’s attributes.
  • SuccessCallback Called after user attributes were successfully received.
  • ErrorCallback Called after the request resulted with an error.

function ModifyUserAttributes

Copy
Full screen
Small screen
1void ModifyUserAttributes(
2    const FString & AuthToken,
3    const TArray< FXsollaUserAttribute > & AttributesToModify,
4    const FOnRequestSuccess & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Updates the values of user attributes with the specified IDs.

Parameters:

  • AuthToken User authorization token.
  • AttributesToModify List of attributes of the specified game.

To add attribute which doesn’t exist, set this attribute to the key parameter.

To update value of the attribute, specify its key parameter and set the new value. You can change several attributes at a time.

  • SuccessCallback Called after successful user attributes modification on the server side.
  • ErrorCallback Called after the request resulted with an error.

The method can be used to create attributes. Changes are made on the user data storage side (server side). More about the use cases .

function RemoveUserAttributes

Copy
Full screen
Small screen
1void RemoveUserAttributes(
2    const FString & AuthToken,
3    const TArray< FString > & AttributesToRemove,
4    const FOnRequestSuccess & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Removes user attributes with the specified IDs.

Parameters:

  • AuthToken User authorization token.
  • AttributesToRemove List of attribute keys for removal.
  • SuccessCallback Called after successful user attributes removal on the server side.
  • ErrorCallback Called after the request resulted with an error.

Changes are made on the user data storage side (server side). More about the use cases .

function CreateAccountLinkingCode

Copy
Full screen
Small screen
1void CreateAccountLinkingCode(
2    const FString & AuthToken,
3    const FOnCodeReceived & SuccessCallback,
4    const FOnError & ErrorCallback
5)

Creates the code for linking the platform account to the existing main account when the user logs in to the game via a gaming console.

Parameters:

  • AuthToken User authorization token.
  • SuccessCallback Сalled after successful account linking code creation. The new linking code will be received.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function CheckUserAge

Copy
Full screen
Small screen
1void CheckUserAge(
2    const FString & DateOfBirth,
3    const FOnCheckUserAgeSuccess & SuccessCallback,
4    const FOnAuthError & ErrorCallback
5)

Checks user age for a particular region.

Parameters:

  • DateOfBirth User’s birth date in the YYYY-MM-DD format.
  • SuccessCallback Called after successful check of the user age.
  • ErrorCallback Called after the request resulted with an error.

The age requirements depend on the region. Service determines the user location by the IP address. More about the use cases .

function LinkEmailAndPassword

Copy
Full screen
Small screen
1void LinkEmailAndPassword(
2    const FString & AuthToken,
3    const FString & Email,
4    const FString & Password,
5    const bool ReceiveNewsConsent,
6    const FString & Username,
7    const FOnLinkEmailAndPasswordSuccess & SuccessCallback,
8    const FOnError & ErrorCallback
9)

Adds a username, email address, and password, that can be used for authentication, to the current account.

Parameters:

  • AuthToken User authorization token.
  • Email User email.
  • Password User password.
  • ReceiveNewsConsent Whether the user gave consent to receive the newsletters.
  • Username User’s username.
  • SuccessCallback Called after successful email and password linking.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function LinkDeviceToAccount

Copy
Full screen
Small screen
1void LinkDeviceToAccount(
2    const FString & AuthToken,
3    const FString & PlatformName,
4    const FString & DeviceName,
5    const FString & DeviceId,
6    const FOnRequestSuccess & SuccessCallback,
7    const FOnError & ErrorCallback
8)

Links the specified device to the current user account.

Parameters:

  • AuthToken User authorization token.
  • PlatformName Name of the mobile platform. Can be android or ios.
  • DeviceName Manufacturer and model name of the device.
  • DeviceId Platform specific unique device ID.

For Android, it is an ANDROID_ID constant.

For iOS, it is an identifierForVendor property.

  • SuccessCallback Called after successful linking of the device.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function UnlinkDeviceFromAccount

Copy
Full screen
Small screen
1void UnlinkDeviceFromAccount(
2    const FString & AuthToken,
3    const int64 DeviceId,
4    const FOnRequestSuccess & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Unlinks the specified device from the current user account.

Parameters:

  • AuthToken User authorization token.
  • DeviceId Platform specific unique device ID.

For Android, it is an ANDROID_ID constant.

For iOS, it is an identifierForVendor property.

  • SuccessCallback Called after successful unlinking of the device.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function AuthenticateViaDeviceId

Copy
Full screen
Small screen
1void AuthenticateViaDeviceId(
2    const FString & DeviceName,
3    const FString & DeviceId,
4    const FString & State,
5    const FOnAuthUpdate & SuccessCallback,
6    const FOnAuthError & ErrorCallback
7)

Authenticates the user via a particular device ID.

Parameters:

  • DeviceName Manufacturer and model name of the device.
  • DeviceId Platform specific unique device ID.

For Android, it is an ANDROID_ID constant.

For iOS, it is an identifierForVendor property.

  • State Value used for additional user verification on backend. Must be at least 8 symbols long. xsollatest by default. Required for OAuth 2.0.
  • SuccessCallback Called after successful user authentication via the device ID.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function AuthViaAccessTokenOfSocialNetwork

Copy
Full screen
Small screen
1void AuthViaAccessTokenOfSocialNetwork(
2    const FString & AuthToken,
3    const FString & AuthTokenSecret,
4    const FString & OpenId,
5    const FString & ProviderName,
6    const FString & State,
7    const FOnAuthUpdate & SuccessCallback,
8    const FOnAuthError & ErrorCallback
9)

Authenticates the user with the access token using social network credentials.

Parameters:

  • AuthToken Access token received from a social network.
  • AuthTokenSecret Parameter oauth_token_secret received from the authorization request. Required for Twitter only.
  • OpenId Parameter openid received from the social network. Required for WeChat only.
  • ProviderName Name of the social network connected to Login in Publisher Account. Can be facebook, google, linkedin, twitter, discord, naver, baidu, wechat, or qq_mobile.
  • State Value used for additional user verification on backend. Must be at least 8 symbols long. xsollatest by default. Required for OAuth 2.0.
  • SuccessCallback Called after successful user authentication on the specified platform.
  • ErrorCallback Called after the request resulted with an error.

function StartAuthByPhoneNumber

Copy
Full screen
Small screen
1void StartAuthByPhoneNumber(
2    const FString & PhoneNumber,
3    const FString & State,
4    const FOnStartAuthSuccess & SuccessCallback,
5    const FOnAuthError & ErrorCallback
6)

Starts user authentication and sends an SMS with a one-time code and a link to the specified phone number (if login via magic link is configured for the Login project).

Parameters:

  • PhoneNumber User phone number.
  • State Value used for additional user verification on backend. Must be at least 8 symbols long. xsollatest by default. Required for OAuth 2.0.
  • SuccessCallback Called after successful phone number authentication start.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function CompleteAuthByPhoneNumber

Copy
Full screen
Small screen
1void CompleteAuthByPhoneNumber(
2    const FString & Code,
3    const FString & OperationId,
4    const FString & PhoneNumber,
5    const FOnAuthUpdate & SuccessCallback,
6    const FOnAuthError & ErrorCallback
7)

Completes authentication after the user enters a one-time code or follows a link received by SMS.

Parameters:

  • Code Confirmation code.
  • OperationId Identifier of the confirmation code.
  • PhoneNumber User phone number.
  • SuccessCallback Called after successful phone number authentication.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function StartAuthByEmail

Copy
Full screen
Small screen
1void StartAuthByEmail(
2    const FString & Email,
3    const FString & State,
4    const FOnStartAuthSuccess & SuccessCallback,
5    const FOnAuthError & ErrorCallback
6)

Starts user authentication and sends an email with a one-time code and a link to the specified email address (if login via magic link is configured for the Login project).

Parameters:

  • Email User email address.
  • State Value used for additional user verification on backend. Must be at least 8 symbols long. xsollatest by default. Required for OAuth 2.0.
  • SuccessCallback Called after successful email authentication start.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function CompleteAuthByEmail

Copy
Full screen
Small screen
1void CompleteAuthByEmail(
2    const FString & Code,
3    const FString & OperationId,
4    const FString & Email,
5    const FOnAuthUpdate & SuccessCallback,
6    const FOnAuthError & ErrorCallback
7)

Completes authentication after the user enters a one-time code or follows a link received in an email.

Parameters:

  • Code Confirmation code.
  • OperationId Identifier of the confirmation code.
  • Email User email address.
  • SuccessCallback Called after successful email authentication.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function GetAuthConfirmationCode

Copy
Full screen
Small screen
1void GetAuthConfirmationCode(
2    const FString & UserId,
3    const FString & OperationId,
4    const FOnAuthCodeSuccess & SuccessCallback,
5    const FOnAuthCodeTimeout & TimeoutCallback,
6    const FOnAuthError & ErrorCallback
7)

Returns confirmation code for completing authentication via email or phone number.

Parameters:

  • UserId Identifier of the user (can be either email or phone number).
  • OperationId Identifier of the confirmation code.
  • SuccessCallback Called after receiving the confirmation code.
  • TimeoutCallback Called after request timeout.
  • ErrorCallback Called after the request resulted with an error.

User must follow the link provided via email/SMS to receive the code.

function GetUserDetails

Copy
Full screen
Small screen
1void GetUserDetails(
2    const FString & AuthToken,
3    const FOnUserDetailsUpdate & SuccessCallback,
4    const FOnError & ErrorCallback
5)

Returns user details.

Parameters:

  • AuthToken User authorization token.
  • SuccessCallback Called after successful user details were successfully received.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function ModifyUserDetails

Copy
Full screen
Small screen
 1void ModifyUserDetails(
 2    const FString & AuthToken,
 3    const FString & Birthday,
 4    const FString & FirstName,
 5    const FString & LastName,
 6    const FString & Gender,
 7    const FString & Nickname,
 8    const FOnUserDetailsUpdate & SuccessCallback,
 9    const FOnError & ErrorCallback
10)

Updates the specified user’s information.

Parameters:

  • AuthToken User authorization token.
  • Birthday User birth date in format YYYY-MM-DD. Can be changed only once.
  • FirstName User first name. Pass empty string to remove the current first name.
  • LastName User last name. Pass empty string to remove the current last name.
  • Gender User gender (f - for female, m - for male).
  • Nickname User nickname. Pass empty string to remove the current nickname.
  • SuccessCallback Called after successful user details modification.
  • ErrorCallback Called after the request resulted with an error.

Changes are made on the user data storage side. More about the use cases .

function GetUserEmail

Copy
Full screen
Small screen
1void GetUserEmail(
2    const FString & AuthToken,
3    const FOnUserDetailsParamUpdate & SuccessCallback,
4    const FOnError & ErrorCallback
5)

Returns the user’s email.

Parameters:

  • AuthToken User authorization token.
  • SuccessCallback Called after user email was successfully received.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function GetUserPhoneNumber

Copy
Full screen
Small screen
1void GetUserPhoneNumber(
2    const FString & AuthToken,
3    const FOnUserDetailsParamUpdate & SuccessCallback,
4    const FOnError & ErrorCallback
5)

Returns user phone number that is used for two-factor authentication.

Parameters:

  • AuthToken User authorization token.
  • SuccessCallback Called after user phone number was successfully received.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function ModifyUserPhoneNumber

Copy
Full screen
Small screen
1void ModifyUserPhoneNumber(
2    const FString & AuthToken,
3    const FString & PhoneNumber,
4    const FOnUserDetailsParamUpdate & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Changes the user’s phone number that is used for two-factor authentication.

Parameters:

  • AuthToken User authorization token.
  • PhoneNumber New user phone number.
  • SuccessCallback Called after user phone number was successfully modified.
  • ErrorCallback Called after the request resulted with an error.

Changes are made on the user data storage side (server-side). More about the use cases .

function RemoveUserPhoneNumber

Copy
Full screen
Small screen
1void RemoveUserPhoneNumber(
2    const FString & AuthToken,
3    const FString & PhoneNumber,
4    const FOnRequestSuccess & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Deletes the user’s phone number that is used for two-factor authentication.

Parameters:

  • AuthToken User authorization token.
  • PhoneNumber User phone number for removal.
  • SuccessCallback Called after the user phone number was successfully removed.
  • ErrorCallback Called after the request resulted with an error.

Changes are made on the user data storage side (server side). More about the use cases .

function ModifyUserProfilePicture

Copy
Full screen
Small screen
1void ModifyUserProfilePicture(
2    const FString & AuthToken,
3    UTexture2D *const Picture,
4    const FOnUserDetailsParamUpdate & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Changes the user’s avatar.

Parameters:

  • AuthToken User authorization token.
  • Picture New user profile picture.
  • SuccessCallback Called after the user profile picture was successfully modified.
  • ErrorCallback Called after the request resulted with an error.

Changes are made on the user data storage side (server side). More about the use cases .

function RemoveProfilePicture

Copy
Full screen
Small screen
1void RemoveProfilePicture(
2    const FString & AuthToken,
3    const FOnRequestSuccess & SuccessCallback,
4    const FOnError & ErrorCallback
5)

Deletes the user’s avatar.

Parameters:

  • AuthToken User authorization token.
  • SuccessCallback Called after user profile picture was successfully removed.
  • ErrorCallback Called after the request resulted with an error.

Changes are made on the user data storage side (server side). More about the use cases .

function GetFriends

Copy
Full screen
Small screen
 1void GetFriends(
 2    const FString & AuthToken,
 3    const EXsollaFriendsType Type,
 4    const EXsollaUsersSortCriteria SortBy,
 5    const EXsollaUsersSortOrder SortOrder,
 6    const FOnUserFriendsUpdate & SuccessCallback,
 7    const FOnError & ErrorCallback,
 8    const FString & After,
 9    const int Limit =20
10)

Returns user friends data.

Parameters:

  • AuthToken User authorization token.
  • Type Friends type.
  • SortBy Condition for sorting users (by name/by update).
  • SortOrder Condition for sorting users (ascending/descending).
  • SuccessCallback Called after user friends data was successfully received.
  • ErrorCallback Called after the request resulted with an error.
  • After Parameter that is used for API pagination.
  • Limit Maximum number of friends that can be received at a time.

function ModifyFriends

Copy
Full screen
Small screen
1void ModifyFriends(
2    const FString & AuthToken,
3    const EXsollaFriendAction Action,
4    const FString & UserID,
5    const FOnRequestSuccess & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Modifies relationships with the specified user.

Parameters:

  • AuthToken User authorization token.
  • Action Type of action to be applied to a specified friend.
  • UserID Identifier of a user to change relationships with.
  • SuccessCallback Called after successful user friends data modification.
  • ErrorCallback Called after the request resulted with an error.
Copy
Full screen
Small screen
1void GetSocialAuthLinks(
2    const FString & AuthToken,
3    const FString & Locale,
4    const FOnSocialAuthLinksUpdate & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Returns list of links for social authentication enabled in Publisher Account.

Parameters:

  • AuthToken User authorization token.

  • Locale Region in the <language code>_<country code> format, where:

  • language code — language code in the ISO 639-1 format;

  • country code — country/region code in the ISO 3166-1 alpha-2 format.

The list of the links will be sorted from most to least used social networks, according to the variable value.

  • SuccessCallback Called after list of links for social authentication was successfully received.
  • ErrorCallback Called after the request resulted with an error.

function GetSocialFriends

Copy
Full screen
Small screen
1void GetSocialFriends(
2    const FString & AuthToken,
3    const FString & Platform,
4    const FOnUserSocialFriendsUpdate & SuccessCallback,
5    const FOnError & ErrorCallback,
6    const int Offset =0,
7    const int Limit =500,
8    const bool FromThisGame =false
9)

Returns user friends data from a social provider.

Parameters:

  • AuthToken User authorization token.
  • Platform Name of social provider. If empty, friends from all available social providers will be fetched.
  • SuccessCallback Called after user friends data was successfully received.
  • ErrorCallback Called after the request resulted with an error.
  • Offset Number of the element from which the list is generated.
  • Limit Maximum number of friends that can be received at a time.
  • FromThisGame Flag indicating whether social friends are from this game.

function GetUsersFriends

Copy
Full screen
Small screen
1void GetUsersFriends(
2    const FString & AuthToken,
3    const FString & Platform,
4    const FOnCodeReceived & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Returns friends on the server.

Parameters:

  • AuthToken User authorization token.
  • Platform Name of the chosen social provider. If not specified, the method gets friends from all social providers.
  • SuccessCallback Called after user friends were successfully received.
  • ErrorCallback Called after the request resulted with an error.

function GetUserProfile

Copy
Full screen
Small screen
1void GetUserProfile(
2    const FString & AuthToken,
3    const FString & UserID,
4    const FOnUserProfileReceived & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Returns specified user public profile information.

Parameters:

  • AuthToken User authorization token.
  • UserID User identifier of public profile information to be received.
  • SuccessCallback Called after user profile data was successfully received.
  • ErrorCallback Called after the request resulted with an error.

function GetUsersDevices

Copy
Full screen
Small screen
1void GetUsersDevices(
2    const FString & AuthToken,
3    const FOnUserDevicesUpdate & SuccessCallback,
4    const FOnError & ErrorCallback
5)

Returns a list of devices linked to the current user account.

Parameters:

  • AuthToken User authorization token.
  • SuccessCallback Called after users devices data was successfully received.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function SearchUsersByNickname

Copy
Full screen
Small screen
1void SearchUsersByNickname(
2    const FString & AuthToken,
3    const FString & Nickname,
4    const FOnUserSearchUpdate & SuccessCallback,
5    const FOnError & ErrorCallback,
6    const int Offset =0,
7    const int Limit =100
8)

Searches for users with the specified nickname.

Parameters:

  • AuthToken User authorization token.
  • Nickname User nickname used as search criteria.
  • SuccessCallback Called after user search is successfully completed.
  • ErrorCallback Called after the request resulted with an error.
  • Offset Number of elements from which the list is generated.
  • Limit Maximum number of users that can be received at a time.

function GetUrlToLinkSocialNetworkToUserAccount

Copy
Full screen
Small screen
1void GetUrlToLinkSocialNetworkToUserAccount(
2    const FString & AuthToken,
3    const FString & ProviderName,
4    const FOnSocialAccountLinkingHtmlReceived & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Links a social network that can be used for authentication to the current account.

Parameters:

  • AuthToken User authorization token.
  • ProviderName Name of a social network. Provider must be connected to Login in Publisher Account.

Can be amazon, apple, baidu, battlenet, discord, facebook, github, google, instagram, kakao, linkedin, mailru, microsoft, msn, naver, ok, paradox, paypal, psn, qq, reddit, steam, twitch, twitter, vimeo, vk, wechat, weibo, yahoo, yandex, youtube, xbox, playstation.

  • SuccessCallback Called after the URL for social authentication was successfully received.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function LinkSocialProvider

Copy
Full screen
Small screen
1void LinkSocialProvider(
2    UObject * WorldContextObject,
3    const FString & AuthToken,
4    const FString & ProviderName,
5    const FOnSocialLinkingSuccess & SuccessCallback,
6    const FOnError & ErrorCallback
7)

Links a social network that can be used for authentication to the current account.

Parameters:

  • WorldContextObject The world context.
  • AuthToken User authorization token.
  • ProviderName Name of a social network. Provider must be connected to Login in Publisher Account.

Can be amazon, apple, baidu, battlenet, discord, facebook, github, google, instagram, kakao, linkedin, mailru, microsoft, msn, naver, ok, paradox, paypal, psn, qq, reddit, steam, twitch, twitter, vimeo, vk, wechat, weibo, yahoo, yandex, youtube, xbox, playstation.

  • SuccessCallback Called after social provider was successfully linked.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function UnlinkSocialProvider

Copy
Full screen
Small screen
1void UnlinkSocialProvider(
2    const FString & AuthToken,
3    const FString & ProviderName,
4    const FOnRequestSuccess & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Unlinks a social network from the user account.

Parameters:

  • AuthToken User authorization token obtained during authorization using Xsolla Login (more about authorization options ).
  • ProviderName Name of a social network. Provider must be connected to Login in Publisher Account.

Can be amazon, apple, baidu, battlenet, discord, facebook, github, google, instagram, kakao, linkedin, mailru, microsoft, msn, naver, ok, paradox, paypal, psn, qq, reddit, steam, twitch, twitter, vimeo, vk, wechat, weibo, yahoo, yandex, youtube, xbox, playstation.

  • SuccessCallback Called after a social network account was successfully unlinked.
  • ErrorCallback Called after the request resulted with an error.

More about the use cases .

function GetLinkedSocialNetworks

Copy
Full screen
Small screen
1void GetLinkedSocialNetworks(
2    const FString & AuthToken,
3    const FOnLinkedSocialNetworksUpdate & SuccessCallback,
4    const FOnError & ErrorCallback
5)

Returns the list of linked social networks.

Parameters:

  • AuthToken User authorization token.
  • SuccessCallback Called after the list of linked social networks was successfully received.
  • ErrorCallback Called after the request resulted with an error.

function LogoutUser

Copy
Full screen
Small screen
1void LogoutUser(
2    const FString & AuthToken,
3    const EXsollaSessionType Sessions,
4    const FOnRequestSuccess & SuccessCallback,
5    const FOnError & ErrorCallback
6)

Logs the user out and deletes the user session according to the value of the sessions parameter (OAuth 2.0 only).

Parameters:

  • AuthToken User authorization token.
  • Sessions Shows how the user is logged out and how the user session is deleted. Available strings: sso and all. Leave empty to use the default value (all).
  • SuccessCallback Called after successful user logout.
  • ErrorCallback Called after the request resulted with an error.

function GetLoginData

Copy
Full screen
Small screen
1FXsollaLoginData GetLoginData() const

Returns user login state data.

function SetLoginData

Copy
Full screen
Small screen
1void SetLoginData(
2    const FXsollaLoginData & Data,
3    const bool ClearCache =true
4)

Sets user login state data.

function UpdateAuthTokenData

Copy
Full screen
Small screen
1void UpdateAuthTokenData(
2    const FString & AccessToken,
3    int ExpiresIn,
4    const FString & RefreshToken,
5    bool bRememberMe =true
6)

Updates user auth token data.

function DropLoginData

Copy
Full screen
Small screen
1void DropLoginData(
2    const bool ClearCache =true
3)

Drops cache and cleans login data.

function LoadSavedData

Copy
Full screen
Small screen
1void LoadSavedData()

Loads save game and extract data.

function SaveData

Copy
Full screen
Small screen
1void SaveData()

Saves cached data or resets it if RememberMe is false.

function HandleRequestError

Copy
Full screen
Small screen
1void HandleRequestError(
2    const XsollaHttpRequestError & ErrorData,
3    FErrorHandlersWrapper ErrorHandlersWrapper
4)

Protected Functions Documentation

function Default_HttpRequestComplete

Copy
Full screen
Small screen
1void Default_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnRequestSuccess SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function DefaultWithHandlerWrapper_HttpRequestComplete

Copy
Full screen
Small screen
1void DefaultWithHandlerWrapper_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnRequestSuccess SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function UserLogin_HttpRequestComplete

Copy
Full screen
Small screen
1void UserLogin_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnAuthUpdate SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function TokenVerify_HttpRequestComplete

Copy
Full screen
Small screen
1void TokenVerify_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnAuthUpdate SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function SocialAuthUrl_HttpRequestComplete

Copy
Full screen
Small screen
1void SocialAuthUrl_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnSocialUrlReceived SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function GetUserAttributes_HttpRequestComplete

Copy
Full screen
Small screen
1void GetUserAttributes_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnUserAttributesUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetReadOnlyUserAttributes_HttpRequestComplete

Copy
Full screen
Small screen
1void GetReadOnlyUserAttributes_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnUserAttributesUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function AccountLinkingCode_HttpRequestComplete

Copy
Full screen
Small screen
1void AccountLinkingCode_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnCodeReceived SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function CheckUserAge_HttpRequestComplete

Copy
Full screen
Small screen
1void CheckUserAge_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnCheckUserAgeSuccess SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function DeviceId_HttpRequestComplete

Copy
Full screen
Small screen
1void DeviceId_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnAuthUpdate SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function RefreshToken_HttpRequestComplete

Copy
Full screen
Small screen
1void RefreshToken_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnAuthUpdate SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function InnerRefreshToken_HttpRequestComplete

Copy
Full screen
Small screen
1void InnerRefreshToken_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnLoginDataUpdate SuccessCallback,
6    FOnLoginDataError ErrorCallback
7)

function SessionTicket_HttpRequestComplete

Copy
Full screen
Small screen
1void SessionTicket_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnAuthUpdate SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function AuthViaAccessTokenOfSocialNetwork_HttpRequestComplete

Copy
Full screen
Small screen
1void AuthViaAccessTokenOfSocialNetwork_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnAuthUpdate SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function StartAuth_HttpRequestComplete

Copy
Full screen
Small screen
1void StartAuth_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnStartAuthSuccess SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function CompleteAuthByPhoneNumber_HttpRequestComplete

Copy
Full screen
Small screen
1void CompleteAuthByPhoneNumber_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnAuthUpdate SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function CompleteAuthByEmail_HttpRequestComplete

Copy
Full screen
Small screen
1void CompleteAuthByEmail_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnAuthUpdate SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function GetAuthConfirmationCode_HttpRequestComplete

Copy
Full screen
Small screen
1void GetAuthConfirmationCode_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnAuthCodeSuccess SuccessCallback,
6    FOnAuthCodeTimeout TimeoutCallback,
7    FOnAuthError ErrorCallback
8)

function UserDetails_HttpRequestComplete

Copy
Full screen
Small screen
1void UserDetails_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnUserDetailsUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function UserEmail_HttpRequestComplete

Copy
Full screen
Small screen
1void UserEmail_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnUserDetailsParamUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function UserPhoneNumber_HttpRequestComplete

Copy
Full screen
Small screen
1void UserPhoneNumber_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnUserDetailsParamUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function ModifyPhoneNumber_HttpRequestComplete

Copy
Full screen
Small screen
1void ModifyPhoneNumber_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnUserDetailsParamUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function RemovePhoneNumber_HttpRequestComplete

Copy
Full screen
Small screen
1void RemovePhoneNumber_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnRequestSuccess SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function UserProfilePicture_HttpRequestComplete

Copy
Full screen
Small screen
1void UserProfilePicture_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnUserDetailsParamUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function UserProfilePictureRemove_HttpRequestComplete

Copy
Full screen
Small screen
1void UserProfilePictureRemove_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnRequestSuccess SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function UserFriends_HttpRequestComplete

Copy
Full screen
Small screen
1void UserFriends_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnUserFriendsUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)
Copy
Full screen
Small screen
1void SocialAuthLinks_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnSocialAuthLinksUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function SocialFriends_HttpRequestComplete

Copy
Full screen
Small screen
1void SocialFriends_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnUserSocialFriendsUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetUsersFriends_HttpRequestComplete

Copy
Full screen
Small screen
1void GetUsersFriends_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnCodeReceived SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function UserProfile_HttpRequestComplete

Copy
Full screen
Small screen
1void UserProfile_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnUserProfileReceived SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function UserSearch_HttpRequestComplete

Copy
Full screen
Small screen
1void UserSearch_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnUserSearchUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function SocialAccountLinking_HttpRequestComplete

Copy
Full screen
Small screen
1void SocialAccountLinking_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnSocialAccountLinkingHtmlReceived SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function LinkedSocialNetworks_HttpRequestComplete

Copy
Full screen
Small screen
1void LinkedSocialNetworks_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnLinkedSocialNetworksUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function GetUsersDevices_HttpRequestComplete

Copy
Full screen
Small screen
1void GetUsersDevices_HttpRequestComplete(
2    const FHttpRequestPtr HttpRequest,
3    const FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnUserDevicesUpdate SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function LinkEmailAndPassword_HttpRequestComplete

Copy
Full screen
Small screen
1void LinkEmailAndPassword_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnLinkEmailAndPasswordSuccess SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function RegisterUser_HttpRequestComplete

Copy
Full screen
Small screen
1void RegisterUser_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnAuthUpdate SuccessCallback,
6    FOnAuthError ErrorCallback
7)

function LogoutUser_HttpRequestComplete

Copy
Full screen
Small screen
1void LogoutUser_HttpRequestComplete(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnRequestSuccess SuccessCallback,
6    FErrorHandlersWrapper ErrorHandlersWrapper
7)

function HandleOAuthTokenRequest

Copy
Full screen
Small screen
1void HandleOAuthTokenRequest(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    bool bSucceeded,
5    FOnAuthError & ErrorCallback,
6    FOnAuthUpdate & SuccessCallback
7)

Processes the request for obtaining/refreshing token using OAuth 2.0.

function HandleUrlWithCodeRequest

Copy
Full screen
Small screen
1void HandleUrlWithCodeRequest(
2    FHttpRequestPtr HttpRequest,
3    FHttpResponsePtr HttpResponse,
4    const bool bSucceeded,
5    FOnAuthUpdate SuccessCallback,
6    FOnAuthError ErrorCallback
7)

Processes the request that returns URL with a code that can be exchanged to user token (OAuth 2.0).

function HandleAskFieldsAuthentication

Copy
Full screen
Small screen
1void HandleAskFieldsAuthentication(
2    const FString & LoginUrl,
3    const FOnAuthUpdate & SuccessCallback,
4    const FOnAuthError & ErrorCallback
5)

Handles the “ask_fields” response from the authentication flow.

function IsAdditionalInfoAskUrl

Copy
Full screen
Small screen
1bool IsAdditionalInfoAskUrl(
2    const FString & LoginUrl
3) const

Returns true if the provided URL redirects to the additional-info validation flow.

function HandleAdditionalInfoAuthResult

Copy
Full screen
Small screen
1void HandleAdditionalInfoAuthResult(
2    const FString & AuthenticationCode,
3    const FString & AuthenticationToken,
4    const FOnAuthUpdate & SuccessCallback,
5    const FOnAuthError & ErrorCallback
6)

Finalizes the additional-info authentication process using the received code or token and triggers the appropriate callback.

function HandleAdditionalInfoAuthError

Copy
Full screen
Small screen
1void HandleAdditionalInfoAuthError(
2    const FString & ErrorCode,
3    const FString & ErrorDescription,
4    const FOnAuthError & ErrorCallback
5)

function HandleAdditionalInfoAuthCancel

Copy
Full screen
Small screen
1void HandleAdditionalInfoAuthCancel(
2    const FOnAuthError & ErrorCallback
3)

function TryMarkAdditionalInfoTerminal

Copy
Full screen
Small screen
1bool TryMarkAdditionalInfoTerminal(
2    const FString & Outcome
3)

function BeginAdditionalInfoFlow

Copy
Full screen
Small screen
1void BeginAdditionalInfoFlow()

function FinishAdditionalInfoFlow

Copy
Full screen
Small screen
1void FinishAdditionalInfoFlow()

function HandleRequestOAuthError

Copy
Full screen
Small screen
1void HandleRequestOAuthError(
2    XsollaHttpRequestError ErrorData,
3    FOnAuthError ErrorCallback
4)

Returns true if the error occurs.

function InnerRefreshToken

Copy
Full screen
Small screen
1void InnerRefreshToken(
2    const FString & RefreshToken,
3    const FOnLoginDataUpdate & SuccessCallback,
4    const FOnLoginDataError & ErrorCallback
5)

function SocialAuthUrlReceivedCallback

Copy
Full screen
Small screen
1void SocialAuthUrlReceivedCallback(
2    const FString & Url
3)

function SocialLinkingUrlReceivedCallback

Copy
Full screen
Small screen
1void SocialLinkingUrlReceivedCallback(
2    const FString & Url
3)

Protected Attributes Documentation

variable LoginData

FXsollaLoginData LoginData;

Keeps state of user login.

Friends Documentation

friend UXsollaNativeAdditionalInfoAuthCallback

Copy
Full screen
Small screen
1friend class UXsollaNativeAdditionalInfoAuthCallback(
2    UXsollaNativeAdditionalInfoAuthCallback 
3);
Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.
Last updated: October 27, 2026

Found a typo or other text error? Select the text and press Ctrl+Enter.

Contents
Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!
We couldn't send your feedback
Try again later or contact us at [email protected].