UXsollaLoginSubsystem
Inherits from UGameInstanceSubsystem
Public Functions
| Name | |
|---|---|
| UXsollaLoginSubsystem () | |
| virtual void | Initialize (FSubsystemCollectionBase & Collection) override |
| virtual void | Deinitialize () override |
| void | Initialize
(const FString & InProjectId, const FString & InLoginId, const FString & InClientId) Initializes controller with provided Project ID and Login ID (use to override project settings). |
| void | RegisterUser
(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. |
| void | ResendAccountConfirmationEmail
(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. |
| void | AuthenticateUser
(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. |
| void | AuthWithXsollaWidget
(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. |
| void | ResetUserPassword
(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. |
| void | ValidateToken
(const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback) Internal request for token validation (called with each auth update automatically) |
| void | GetSocialAuthenticationUrl
(const FString & ProviderName, const FString & State, const FOnSocialUrlReceived & SuccessCallback, const FOnAuthError & ErrorCallback) Returns URL for authentication via the specified social network in a browser. |
| void | LaunchSocialAuthentication
(UObject * WorldContextObject, UUserWidget *& BrowserWidget, const bool bRememberMe =false) Opens social authentication URL in the browser. |
| void | LaunchNativeSocialAuthentication
(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. |
| void | AuthenticateViaSocialNetwork
(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. |
| void | SetToken
(const FString & Token) Sets a new value of a token (used when the token is obtained via social network authentication, etc.). |
| void | RefreshToken
(const FString & RefreshToken, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback) Refreshes the token in case it is expired. |
| void | ExchangeAuthenticationCodeToToken
(const FString & AuthenticationCode, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback) Exchanges the user authentication code to a valid JWT. |
| void | AuthenticateWithSessionTicket
(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. |
| void | GetUserAttributes
(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. |
| void | GetUserReadOnlyAttributes
(const FString & AuthToken, const FString & UserId, const TArray< FString > & AttributeKeys, const FOnUserAttributesUpdate & SuccessCallback, const FOnError & ErrorCallback) Returns list of user read-only attributes. |
| void | ModifyUserAttributes
(const FString & AuthToken, const TArray< FXsollaUserAttribute
> & AttributesToModify, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback) Updates the values of user attributes with the specified IDs. |
| void | RemoveUserAttributes
(const FString & AuthToken, const TArray< FString > & AttributesToRemove, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback) Removes user attributes with the specified IDs. |
| void | CreateAccountLinkingCode
(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. |
| void | CheckUserAge
(const FString & DateOfBirth, const FOnCheckUserAgeSuccess & SuccessCallback, const FOnAuthError & ErrorCallback) Checks user age for a particular region. |
| void | LinkEmailAndPassword
(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. |
| void | LinkDeviceToAccount
(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. |
| void | UnlinkDeviceFromAccount
(const FString & AuthToken, const int64 DeviceId, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback) Unlinks the specified device from the current user account. |
| void | AuthenticateViaDeviceId
(const FString & DeviceName, const FString & DeviceId, const FString & State, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback) Authenticates the user via a particular device ID. |
| void | AuthViaAccessTokenOfSocialNetwork
(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. |
| void | StartAuthByPhoneNumber
(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). |
| void | CompleteAuthByPhoneNumber
(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. |
| void | StartAuthByEmail
(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). |
| void | CompleteAuthByEmail
(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. |
| void | GetAuthConfirmationCode
(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. |
| void | GetUserDetails
(const FString & AuthToken, const FOnUserDetailsUpdate & SuccessCallback, const FOnError & ErrorCallback) Returns user details. |
| void | ModifyUserDetails
(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. |
| void | GetUserEmail
(const FString & AuthToken, const FOnUserDetailsParamUpdate & SuccessCallback, const FOnError & ErrorCallback) Returns the user’s email. |
| void | GetUserPhoneNumber
(const FString & AuthToken, const FOnUserDetailsParamUpdate & SuccessCallback, const FOnError & ErrorCallback) Returns user phone number that is used for two-factor authentication. |
| void | ModifyUserPhoneNumber
(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. |
| void | RemoveUserPhoneNumber
(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. |
| void | ModifyUserProfilePicture
(const FString & AuthToken, UTexture2D *const Picture, const FOnUserDetailsParamUpdate & SuccessCallback, const FOnError & ErrorCallback) Changes the user’s avatar. |
| void | RemoveProfilePicture
(const FString & AuthToken, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback) Deletes the user’s avatar. |
| void | GetFriends
(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. |
| void | ModifyFriends
(const FString & AuthToken, const EXsollaFriendAction Action, const FString & UserID, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback) Modifies relationships with the specified user. |
| void | GetSocialAuthLinks
(const FString & AuthToken, const FString & Locale, const FOnSocialAuthLinksUpdate & SuccessCallback, const FOnError & ErrorCallback) Returns list of links for social authentication enabled in Publisher Account. |
| void | GetSocialFriends
(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. |
| void | GetUsersFriends
(const FString & AuthToken, const FString & Platform, const FOnCodeReceived & SuccessCallback, const FOnError & ErrorCallback) Returns friends on the server. |
| void | GetUserProfile
(const FString & AuthToken, const FString & UserID, const FOnUserProfileReceived & SuccessCallback, const FOnError & ErrorCallback) Returns specified user public profile information. |
| void | GetUsersDevices
(const FString & AuthToken, const FOnUserDevicesUpdate & SuccessCallback, const FOnError & ErrorCallback) Returns a list of devices linked to the current user account. |
| void | SearchUsersByNickname
(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. |
| void | GetUrlToLinkSocialNetworkToUserAccount
(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. |
| void | LinkSocialProvider
(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. |
| void | UnlinkSocialProvider
(const FString & AuthToken, const FString & ProviderName, const FOnRequestSuccess & SuccessCallback, const FOnError & ErrorCallback) Unlinks a social network from the user account. |
| void | GetLinkedSocialNetworks
(const FString & AuthToken, const FOnLinkedSocialNetworksUpdate & SuccessCallback, const FOnError & ErrorCallback) Returns the list of linked social networks. |
| void | LogoutUser
(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). |
| FXsollaLoginData | GetLoginData
() const Returns user login state data. |
| void | SetLoginData
(const FXsollaLoginData
& Data, const bool ClearCache =true) Sets user login state data. |
| void | UpdateAuthTokenData
(const FString & AccessToken, int ExpiresIn, const FString & RefreshToken, bool bRememberMe =true) Updates user auth token data. |
| void | DropLoginData
(const bool ClearCache =true) Drops cache and cleans login data. |
| void | LoadSavedData
() Loads save game and extract data. |
| void | SaveData
() Saves cached data or resets it if RememberMe is false. |
| void | HandleRequestError (const XsollaHttpRequestError & ErrorData, FErrorHandlersWrapper ErrorHandlersWrapper) |
Protected Functions
| Name | |
|---|---|
| void | Default_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnRequestSuccess SuccessCallback, FOnAuthError ErrorCallback) |
| void | DefaultWithHandlerWrapper_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnRequestSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | UserLogin_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback) |
| void | TokenVerify_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback) |
| void | SocialAuthUrl_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnSocialUrlReceived SuccessCallback, FOnAuthError ErrorCallback) |
| void | GetUserAttributes_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserAttributesUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetReadOnlyUserAttributes_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserAttributesUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | AccountLinkingCode_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCodeReceived SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | CheckUserAge_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCheckUserAgeSuccess SuccessCallback, FOnAuthError ErrorCallback) |
| void | DeviceId_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback) |
| void | RefreshToken_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback) |
| void | InnerRefreshToken_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnLoginDataUpdate SuccessCallback, FOnLoginDataError ErrorCallback) |
| void | SessionTicket_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback) |
| void | AuthViaAccessTokenOfSocialNetwork_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback) |
| void | StartAuth_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnStartAuthSuccess SuccessCallback, FOnAuthError ErrorCallback) |
| void | CompleteAuthByPhoneNumber_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback) |
| void | CompleteAuthByEmail_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback) |
| void | GetAuthConfirmationCode_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthCodeSuccess SuccessCallback, FOnAuthCodeTimeout TimeoutCallback, FOnAuthError ErrorCallback) |
| void | UserDetails_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserDetailsUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | UserEmail_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserDetailsParamUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | UserPhoneNumber_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserDetailsParamUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | ModifyPhoneNumber_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserDetailsParamUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | RemovePhoneNumber_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnRequestSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | UserProfilePicture_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserDetailsParamUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | UserProfilePictureRemove_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnRequestSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | UserFriends_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserFriendsUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | SocialAuthLinks_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnSocialAuthLinksUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | SocialFriends_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserSocialFriendsUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetUsersFriends_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnCodeReceived SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | UserProfile_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserProfileReceived SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | UserSearch_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserSearchUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | SocialAccountLinking_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnSocialAccountLinkingHtmlReceived SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | LinkedSocialNetworks_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnLinkedSocialNetworksUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | GetUsersDevices_HttpRequestComplete (const FHttpRequestPtr HttpRequest, const FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnUserDevicesUpdate SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | LinkEmailAndPassword_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnLinkEmailAndPasswordSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | RegisterUser_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnAuthUpdate SuccessCallback, FOnAuthError ErrorCallback) |
| void | LogoutUser_HttpRequestComplete (FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, const bool bSucceeded, FOnRequestSuccess SuccessCallback, FErrorHandlersWrapper ErrorHandlersWrapper) |
| void | HandleOAuthTokenRequest
(FHttpRequestPtr HttpRequest, FHttpResponsePtr HttpResponse, bool bSucceeded, FOnAuthError & ErrorCallback, FOnAuthUpdate & SuccessCallback) Processes the request for obtaining/refreshing token using OAuth 2.0. |
| void | HandleUrlWithCodeRequest
(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). |
| void | HandleAskFieldsAuthentication
(const FString & LoginUrl, const FOnAuthUpdate & SuccessCallback, const FOnAuthError & ErrorCallback) Handles the “ask_fields” response from the authentication flow. |
| bool | IsAdditionalInfoAskUrl
(const FString & LoginUrl) const Returns true if the provided URL redirects to the additional-info validation flow. |
| void | HandleAdditionalInfoAuthResult
(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. |
| void | HandleAdditionalInfoAuthError (const FString & ErrorCode, const FString & ErrorDescription, const FOnAuthError & ErrorCallback) |
| void | HandleAdditionalInfoAuthCancel (const FOnAuthError & ErrorCallback) |
| bool | TryMarkAdditionalInfoTerminal (const FString & Outcome) |
| void | BeginAdditionalInfoFlow () |
| void | FinishAdditionalInfoFlow () |
| void | HandleRequestOAuthError
(XsollaHttpRequestError ErrorData, FOnAuthError ErrorCallback) Returns true if the error occurs. |
| void | InnerRefreshToken (const FString & RefreshToken, const FOnLoginDataUpdate & SuccessCallback, const FOnLoginDataError & ErrorCallback) |
| void | SocialAuthUrlReceivedCallback (const FString & Url) |
| void | SocialLinkingUrlReceivedCallback (const FString & Url) |
Protected Attributes
| Name | |
|---|---|
| FXsollaLoginData | LoginData Keeps state of user login. |
Friends
Public Functions Documentation
function UXsollaLoginSubsystem
- C++
1UXsollaLoginSubsystem()
function Initialize
- C++
1virtual void Initialize(
2 FSubsystemCollectionBase & Collection
3) override
function Deinitialize
- C++
1virtual void Deinitialize() override
function Initialize
- C++
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
- C++
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.
xsollatestby 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
- C++
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.
xsollatestby 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
- C++
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.
function AuthWithXsollaWidget
- C++
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.
falseby 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.
xsollatestby default. Required for OAuth 2.0.
function ResetUserPassword
- C++
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.
function ValidateToken
- C++
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
- C++
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.
xsollatestby 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.
function LaunchSocialAuthentication
- C++
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.
falseby default.
function LaunchNativeSocialAuthentication
- C++
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, orxbox. - 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.
xsollatestby default. Required for OAuth 2.0.
function AuthenticateViaSocialNetwork
- C++
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, orxbox. - 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.
xsollatestby default. Required for OAuth 2.0.
Method incapsulates web-based and native authentication methods.
function SetToken
- C++
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
- C++
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
- C++
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.
function AuthenticateWithSessionTicket
- C++
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, orepicgames. - 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.
xsollatestby 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).
function GetUserAttributes
- C++
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
- C++
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
- C++
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
- C++
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
- C++
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.
function CheckUserAge
- C++
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-DDformat. - 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
- C++
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.
function LinkDeviceToAccount
- C++
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
androidorios. - 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.
function UnlinkDeviceFromAccount
- C++
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.
function AuthenticateViaDeviceId
- C++
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.
xsollatestby 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.
function AuthViaAccessTokenOfSocialNetwork
- C++
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_secretreceived from the authorization request. Required for Twitter only. - OpenId Parameter
openidreceived 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, orqq_mobile. - State Value used for additional user verification on backend. Must be at least 8 symbols long.
xsollatestby 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
- C++
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.
xsollatestby default. Required for OAuth 2.0. - SuccessCallback Called after successful phone number authentication start.
- ErrorCallback Called after the request resulted with an error.
function CompleteAuthByPhoneNumber
- C++
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.
function StartAuthByEmail
- C++
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.
xsollatestby default. Required for OAuth 2.0. - SuccessCallback Called after successful email authentication start.
- ErrorCallback Called after the request resulted with an error.
function CompleteAuthByEmail
- C++
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.
function GetAuthConfirmationCode
- C++
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
- C++
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.
function ModifyUserDetails
- C++
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
- C++
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.
function GetUserPhoneNumber
- C++
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.
function ModifyUserPhoneNumber
- C++
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
- C++
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
- C++
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
- C++
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
- C++
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
- C++
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.
function GetSocialAuthLinks
- C++
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
- C++
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
- C++
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
- C++
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
- C++
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.
function SearchUsersByNickname
- C++
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
- C++
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.
function LinkSocialProvider
- C++
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.
function UnlinkSocialProvider
- C++
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.
function GetLinkedSocialNetworks
- C++
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
- C++
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:
ssoandall. 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
- C++
1FXsollaLoginData GetLoginData() const
Returns user login state data.
function SetLoginData
- C++
1void SetLoginData(
2 const FXsollaLoginData & Data,
3 const bool ClearCache =true
4)
Sets user login state data.
function UpdateAuthTokenData
- C++
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
- C++
1void DropLoginData(
2 const bool ClearCache =true
3)
Drops cache and cleans login data.
function LoadSavedData
- C++
1void LoadSavedData()
Loads save game and extract data.
function SaveData
- C++
1void SaveData()
Saves cached data or resets it if RememberMe is false.
function HandleRequestError
- C++
1void HandleRequestError(
2 const XsollaHttpRequestError & ErrorData,
3 FErrorHandlersWrapper ErrorHandlersWrapper
4)
Protected Functions Documentation
function Default_HttpRequestComplete
- C++
1void Default_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnRequestSuccess SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function DefaultWithHandlerWrapper_HttpRequestComplete
- C++
1void DefaultWithHandlerWrapper_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnRequestSuccess SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function UserLogin_HttpRequestComplete
- C++
1void UserLogin_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnAuthUpdate SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function TokenVerify_HttpRequestComplete
- C++
1void TokenVerify_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnAuthUpdate SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function SocialAuthUrl_HttpRequestComplete
- C++
1void SocialAuthUrl_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnSocialUrlReceived SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function GetUserAttributes_HttpRequestComplete
- C++
1void GetUserAttributes_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnUserAttributesUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetReadOnlyUserAttributes_HttpRequestComplete
- C++
1void GetReadOnlyUserAttributes_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnUserAttributesUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function AccountLinkingCode_HttpRequestComplete
- C++
1void AccountLinkingCode_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnCodeReceived SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function CheckUserAge_HttpRequestComplete
- C++
1void CheckUserAge_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnCheckUserAgeSuccess SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function DeviceId_HttpRequestComplete
- C++
1void DeviceId_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnAuthUpdate SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function RefreshToken_HttpRequestComplete
- C++
1void RefreshToken_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnAuthUpdate SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function InnerRefreshToken_HttpRequestComplete
- C++
1void InnerRefreshToken_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnLoginDataUpdate SuccessCallback,
6 FOnLoginDataError ErrorCallback
7)
function SessionTicket_HttpRequestComplete
- C++
1void SessionTicket_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnAuthUpdate SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function AuthViaAccessTokenOfSocialNetwork_HttpRequestComplete
- C++
1void AuthViaAccessTokenOfSocialNetwork_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnAuthUpdate SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function StartAuth_HttpRequestComplete
- C++
1void StartAuth_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnStartAuthSuccess SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function CompleteAuthByPhoneNumber_HttpRequestComplete
- C++
1void CompleteAuthByPhoneNumber_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnAuthUpdate SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function CompleteAuthByEmail_HttpRequestComplete
- C++
1void CompleteAuthByEmail_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnAuthUpdate SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function GetAuthConfirmationCode_HttpRequestComplete
- C++
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
- C++
1void UserDetails_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnUserDetailsUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function UserEmail_HttpRequestComplete
- C++
1void UserEmail_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnUserDetailsParamUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function UserPhoneNumber_HttpRequestComplete
- C++
1void UserPhoneNumber_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnUserDetailsParamUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function ModifyPhoneNumber_HttpRequestComplete
- C++
1void ModifyPhoneNumber_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnUserDetailsParamUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function RemovePhoneNumber_HttpRequestComplete
- C++
1void RemovePhoneNumber_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnRequestSuccess SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function UserProfilePicture_HttpRequestComplete
- C++
1void UserProfilePicture_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnUserDetailsParamUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function UserProfilePictureRemove_HttpRequestComplete
- C++
1void UserProfilePictureRemove_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnRequestSuccess SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function UserFriends_HttpRequestComplete
- C++
1void UserFriends_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnUserFriendsUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function SocialAuthLinks_HttpRequestComplete
- C++
1void SocialAuthLinks_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnSocialAuthLinksUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function SocialFriends_HttpRequestComplete
- C++
1void SocialFriends_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnUserSocialFriendsUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetUsersFriends_HttpRequestComplete
- C++
1void GetUsersFriends_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnCodeReceived SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function UserProfile_HttpRequestComplete
- C++
1void UserProfile_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnUserProfileReceived SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function UserSearch_HttpRequestComplete
- C++
1void UserSearch_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnUserSearchUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function SocialAccountLinking_HttpRequestComplete
- C++
1void SocialAccountLinking_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnSocialAccountLinkingHtmlReceived SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function LinkedSocialNetworks_HttpRequestComplete
- C++
1void LinkedSocialNetworks_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnLinkedSocialNetworksUpdate SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function GetUsersDevices_HttpRequestComplete
- C++
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
- C++
1void LinkEmailAndPassword_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnLinkEmailAndPasswordSuccess SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function RegisterUser_HttpRequestComplete
- C++
1void RegisterUser_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnAuthUpdate SuccessCallback,
6 FOnAuthError ErrorCallback
7)
function LogoutUser_HttpRequestComplete
- C++
1void LogoutUser_HttpRequestComplete(
2 FHttpRequestPtr HttpRequest,
3 FHttpResponsePtr HttpResponse,
4 const bool bSucceeded,
5 FOnRequestSuccess SuccessCallback,
6 FErrorHandlersWrapper ErrorHandlersWrapper
7)
function HandleOAuthTokenRequest
- C++
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
- C++
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
- C++
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
- C++
1bool IsAdditionalInfoAskUrl(
2 const FString & LoginUrl
3) const
Returns true if the provided URL redirects to the additional-info validation flow.
function HandleAdditionalInfoAuthResult
- C++
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
- C++
1void HandleAdditionalInfoAuthError(
2 const FString & ErrorCode,
3 const FString & ErrorDescription,
4 const FOnAuthError & ErrorCallback
5)
function HandleAdditionalInfoAuthCancel
- C++
1void HandleAdditionalInfoAuthCancel(
2 const FOnAuthError & ErrorCallback
3)
function TryMarkAdditionalInfoTerminal
- C++
1bool TryMarkAdditionalInfoTerminal(
2 const FString & Outcome
3)
function BeginAdditionalInfoFlow
- C++
1void BeginAdditionalInfoFlow()
function FinishAdditionalInfoFlow
- C++
1void FinishAdditionalInfoFlow()
function HandleRequestOAuthError
- C++
1void HandleRequestOAuthError(
2 XsollaHttpRequestError ErrorData,
3 FOnAuthError ErrorCallback
4)
Returns true if the error occurs.
function InnerRefreshToken
- C++
1void InnerRefreshToken(
2 const FString & RefreshToken,
3 const FOnLoginDataUpdate & SuccessCallback,
4 const FOnLoginDataError & ErrorCallback
5)
function SocialAuthUrlReceivedCallback
- C++
1void SocialAuthUrlReceivedCallback(
2 const FString & Url
3)
function SocialLinkingUrlReceivedCallback
- C++
1void SocialLinkingUrlReceivedCallback(
2 const FString & Url
3)
Protected Attributes Documentation
variable LoginData
FXsollaLoginData LoginData;
Keeps state of user login.
Friends Documentation
friend UXsollaNativeAdditionalInfoAuthCallback
- C++
1friend class UXsollaNativeAdditionalInfoAuthCallback(
2 UXsollaNativeAdditionalInfoAuthCallback
3);
Found a typo or other text error? Select the text and press Ctrl+Enter.