User class provides convenient interaction to user authentication and account management service (AccelByte IAM). This user class will manage user credentials to be used to access other services, including refreshing its token. More...
Public Member Functions | |||||||
| void | LoginWithUsername (string username, string password, ResultCallback callback, bool rememberMe=false) | ||||||
| Login to AccelByte account with username (e.g. email) and password. | |||||||
| void | LoginWithUsername (string username, string password, ResultCallback< TokenData, OAuthError > callback, bool rememberMe=false) | ||||||
| Login to AccelByte account with username (e.g. email) and password. | |||||||
| void | LoginWithUsernameV3 (string username, string password, ResultCallback callback, bool rememberMe=false) | ||||||
| Login to AccelByte account with username (or email) and password using V3 endpoint. | |||||||
| void | LoginWithUsernameV3 (string username, string password, ResultCallback< TokenData, OAuthError > callback, bool rememberMe=false) | ||||||
| Login to AccelByte account with username (or email) and password using V3 endpoint. | |||||||
| void | LoginWithOtherPlatformId (PlatformType platformType, string platformToken, ResultCallback callback, bool createHeadless=true) | ||||||
| Login with token from non AccelByte platforms. This will automatically register a user if the user identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet. | |||||||
| void | LoginWithOtherPlatform (PlatformType platformType, string platformToken, ResultCallback< TokenData, OAuthError > callback, bool createHeadless=true, LoginWithMacAddress loginWithMacAddress=null) | ||||||
| Login with token from non AccelByte platforms. This will automatically register a user if the user identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet. | |||||||
| void | LoginWithOtherPlatform (PlatformType platformType, string platformToken, ResultCallback< TokenData, OAuthError > callback, bool createHeadless, string serviceLabel, LoginWithMacAddress loginWithMacAddress=null) | ||||||
| Login with token from PS4/PS5 platforms. This will automatically register a user if the user identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet. | |||||||
| void | ReloginWithOtherPlatform (PlatformType platformType, ResultCallback< TokenData, OAuthError > callback) | ||||||
| void | ReloginWithOtherPlatform (string platformId, ResultCallback< TokenData, OAuthError > callback) | ||||||
| void | LoginWithOtherPlatformId (string platformId, string platformToken, ResultCallback callback, bool createHeadless=true) | ||||||
| Login with token from non AccelByte platforms, especially to support OIDC (with 2FA enable) identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet. | |||||||
| void | LoginWithOtherPlatformId (string platformId, string platformToken, ResultCallback< TokenData, OAuthError > callback, bool createHeadless=true, LoginWithMacAddress loginWithMacAddress=null) | ||||||
| Login with token from non AccelByte platforms, especially to support OIDC (with 2FA enable) identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet. | |||||||
| void | LoginWithOtherPlatformId (string platformId, string platformToken, ResultCallback< TokenData, OAuthError > callback, bool createHeadless, string serviceLabel, LoginWithMacAddress loginWithMacAddress=null) | ||||||
| Login with token from non AccelByte platforms, especially to support OIDC (with 2FA enable) identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet. | |||||||
| void | LoginWithOtherPlatformV3 (LoginPlatformType loginPlatformType, string platformToken, LoginWithOtherPlatformOptionalParameters optionalParameters, ResultCallback< TokenData, OAuthError > callback) | ||||||
| Login with token from non AccelByte platforms, especially to support OIDC (with 2FA enable) identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet. | |||||||
| void | LoginWithLauncher (ResultCallback callback) | ||||||
| Login With AccelByte Launcher. Use this only if you integrate your game with AccelByte Launcher. | |||||||
| void | LoginWithLauncher (ResultCallback< TokenData, OAuthError > callback) | ||||||
| Login With AccelByte Launcher. Use this only if you integrate your game with AccelByte Launcher. | |||||||
| void | LoginWithLauncher (string authCode, ResultCallback< TokenData, OAuthError > callback) | ||||||
| Login With AccelByte Launcher. Use this only if you integrate your game with AccelByte Launcher. | |||||||
| void | LoginWithDeviceId (ResultCallback callback) | ||||||
| Login with device id. A user registered with this method is called a headless account because it doesn't have username yet. | |||||||
| void | LoginWithDeviceId (ResultCallback< TokenData, OAuthError > callback) | ||||||
| Login with device id. A user registered with this method is called a headless account because it doesn't have username yet. | |||||||
| void | LoginWithLatestRefreshToken (ResultCallback callback) | ||||||
| Login with the latest refresh token stored on the device. Will returning an error if the token already epired. | |||||||
| void | LoginWithLatestRefreshToken (ResultCallback< TokenData, OAuthError > callback) | ||||||
| Login with the latest refresh token stored on the device. Will returning an error if the token already epired. | |||||||
| void | LoginWithLatestRefreshToken (string refreshToken, ResultCallback callback) | ||||||
| Login with the latest refresh token stored on the device. Will returning an error if the token already expired. | |||||||
| void | LoginWithLatestRefreshToken (string refreshToken, ResultCallback< TokenData, OAuthError > callback) | ||||||
| Login with the latest refresh token stored on the device. Will returning an error if the token already expired. | |||||||
| void | LoginWithCachedRefreshToken (string cacheKey, ResultCallback< TokenData, OAuthError > callback) | ||||||
| Login with refresh token from local cache file. | |||||||
| void | RefreshSession (ResultCallback callback) | ||||||
| Refresh current login session. Will update current token. | |||||||
| void | RefreshSession (ResultCallback< TokenData, OAuthError > callback) | ||||||
| Refresh current login session. Will update current token. | |||||||
| void | RefreshSession (string refreshToken, ResultCallback< TokenData, OAuthError > callback) | ||||||
| Refresh current login session. Will update current token. | |||||||
| void | Logout (ResultCallback callback) | ||||||
| Logout current user session. Access tokens, user ID, and other credentials from memory will be removed. | |||||||
| void | Register (string emailAddress, string password, string displayName, string country, DateTime dateOfBirth, ResultCallback< RegisterUserResponse > callback) | ||||||
| Register a user by giving username, password, and displayName. | |||||||
| void | Register (string emailAddress, string password, string displayName, string country, DateTime dateOfBirth, RegisterUserOptionalParameters optionalParameters, ResultCallback< RegisterUserResponse > callback) | ||||||
| Register a user by giving username, password, and displayName. | |||||||
| void | Register (string emailAddress, string password, string displayName, string country, DateTime dateOfBirth, string uniqueDisplayName, ResultCallback< RegisterUserResponse > callback) | ||||||
| Register a user by giving username, password, and displayName. | |||||||
| void | Register (string emailAddress, string password, string displayName, string country, DateTime dateOfBirth, string uniqueDisplayName, RegisterUserOptionalParameters optionalParameters, ResultCallback< RegisterUserResponse > callback) | ||||||
| Register a user by giving username, password, and displayName. | |||||||
| void | RegisterV2 (string emailAddress, string username, string password, string displayName, string country, DateTime dateOfBirth, string uniqueDisplayName, ResultCallback< RegisterUserResponse > callback) | ||||||
| Register a user by giving username, password, and displayName. | |||||||
| void | RegisterV2 (string emailAddress, string username, string password, string displayName, string country, DateTime dateOfBirth, string uniqueDisplayName, RegisterUserOptionalParameters optionalParameters, ResultCallback< RegisterUserResponse > callback) | ||||||
| Register a user by giving username, password, and displayName. | |||||||
| void | Registerv2 (string emailAddress, string username, string password, string displayName, string country, DateTime dateOfBirth, ResultCallback< RegisterUserResponse > callback) | ||||||
| Register a user by giving username, password, and displayName. | |||||||
| void | Registerv2 (string emailAddress, string username, string password, string displayName, string country, DateTime dateOfBirth, RegisterUserOptionalParameters optionalParameters, ResultCallback< RegisterUserResponse > callback) | ||||||
| Register a user by giving username, password, and displayName. | |||||||
| void | RegisterAndAcceptPolicies (RegisterUserRequestv2 request, ResultCallback< RegisterUserResponse > callback) | ||||||
| Register a user while optionally accepting legal policies, password, and displayName. | |||||||
| void | SendVerificationCodeToNewUser (string emailAddress, SendVerificationCodeToNewUserOptionalParameters optionalParameters, ResultCallback callback) | ||||||
| Request for verification code to be sent via provided email address. | |||||||
| void | GetData (ResultCallback< UserData > callback) | ||||||
| Get current logged in user data. It will return cached user data if it has been called before. | |||||||
| void | GetDataWithLinkedPlatform (ResultCallback< UserData > callback) | ||||||
| Get current logged in user data with platform data. It will return cached user data if it has been called before. | |||||||
| void | GetUserOtherPlatformBasicPublicInfo (string platformId, string[] userIds, ResultCallback< AccountUserPlatformInfosResponse > callback) | ||||||
| This function will get user basic and public info of 3rd party account. | |||||||
| void | RefreshData (ResultCallback< UserData > callback, bool isIncludeAllPlatforms=false) | ||||||
| Refresh currrent cached user data. | |||||||
| void | Update (UpdateUserRequest updateRequest, ResultCallback< UserData > callback) | ||||||
| Update some user information (e.g. language or country). | |||||||
| void | UpdateEmail (UpdateEmailRequest updateEmailRequest, ResultCallback callback) | ||||||
| Update user email address. | |||||||
| void | Upgrade (string userName, string password, ResultCallback< UserData > callback, bool needVerificationCode=false) | ||||||
| Upgrade a headless account with username and password. User must be logged in before this method can be used. | |||||||
| void | Upgrade (string userName, string password, UpgradeHeadlessAccountOptionalParameters optionalParameters, ResultCallback< UserData > callback) | ||||||
| Upgrade a headless account with username and password. User must be logged in before this method can be used. | |||||||
| void | Upgradev2 (string emailAddress, string userName, string password, ResultCallback< UserData > callback) | ||||||
| Upgrade a headless account with username and password. User must be logged in before this method can be used. | |||||||
| void | Upgradev2 (string emailAddress, string password, ResultCallback< UserData > callback) | ||||||
| Upgrade a headless account with username and password. User must be logged in before this method can be used. | |||||||
| void | UpgradeAndVerifyHeadlessAccount (UpgradeAndVerifyHeadlessRequest upgradeAndVerifyHeadlessRequest, ResultCallback< UserData > callback) | ||||||
| Upgrade a headless account. User must be logged in first then call SendUpgradeVerificationCode code to get verification code send to their email. | |||||||
| void | SendUpgradeVerificationCode (string emailAddress, ResultCallback callback) | ||||||
| Trigger an email that contains verification code to be sent to user's email. User must be logged in with headless account. This function context is "upgradeHeadlessAccount". | |||||||
| void | SendVerificationCode (ResultCallback callback) | ||||||
| Trigger an email that contains verification code to be sent to user's email. User must be logged in. This function context is "UserAccountRegistration". If you want to set your own context, please use the other overload function. | |||||||
| void | SendVerificationCode (VerificationContext verificationContext, ResultCallback callback) | ||||||
| Trigger an email that contains verification code to be sent to user's email. User must be logged in. | |||||||
| void | Verify (string verificationCode, ResultCallback callback) | ||||||
| Verify a user via an email registered as its username. User must be logged in. | |||||||
| void | SendResetPasswordCode (string userName, ResultCallback callback) | ||||||
| Trigger an email that contains reset password code to be sent to user. | |||||||
| void | ResetPassword (string resetCode, string userName, string newPassword, ResultCallback callback) | ||||||
| Reset password for a username. | |||||||
| void | LinkOtherPlatform (PlatformType platformType, string platformTicket, ResultCallback callback) | ||||||
| Link other platform's account to the currently logged in user. | |||||||
| void | LinkOtherPlatformId (string platformId, string platformTicket, ResultCallback callback) | ||||||
| Link other platform's account to the currently logged in user. especially to support OIDC. | |||||||
| void | ForcedLinkOtherPlatform (PlatformType platformType, string platformUserId, ResultCallback callback) | ||||||
| Force to Link other platform's account to the currently logged in user. | |||||||
| void | ForcedLinkOtherPlatform (PlatformType platformType, string platformUserId, ForceLinkOtherPlatformOptionalParameters optionalParameters, ResultCallback callback) | ||||||
| Force to Link other platform's account to the currently logged in user. | |||||||
| void | ForcedLinkOtherPlatformId (string platformId, string platformUserId, ResultCallback callback) | ||||||
| Force to Link other platform's account to the currently logged in user. | |||||||
| void | UnlinkOtherPlatform (PlatformType platformType, ResultCallback callback) | ||||||
| Unlink other platform that has been linked to the currently logged in user. The change will take effect after user has been re-login. | |||||||
| void | UnlinkOtherPlatformId (string platformId, ResultCallback callback) | ||||||
| Unlink other platform that has been linked to the currently logged in user. The change will take effect after user has been re-login. This function specially to support OIDC. | |||||||
| void | UnlinkAllOtherPlatform (PlatformType platformType, ResultCallback callback) | ||||||
| Unlink other platform that has been linked to the currently logged in user. The change will take effect after user has been re-login. Note: Use this API to unlink all the user's current account from their other accounts in other platforms within the game namespace. It resolves issues with the old API by ensuring successful unlinking across multiple namespaces. After calling this API, if a user logs in to any namespace with the same 3rd platform account, they will be logged in as a different account. | |||||||
| void | UnlinkAllOtherPlatformId (string PlatformId, ResultCallback callback) | ||||||
| Unlink other platform that has been linked to the currently logged in user. The change will take effect after user has been re-login. This function specially to support OIDC. Note: Use this API to unlink all the user's current account from their other accounts in other platforms within the game namespace. It resolves issues with the old API by ensuring successful unlinking across multiple namespaces. After calling this API, if a user logs in to any namespace with the same 3rd platform account, they will be logged in as a different account. | |||||||
| void | GetPlatformLinks (ResultCallback< PagedPlatformLinks > callback) | ||||||
| Get array of other platforms this user linked to. | |||||||
| void | SearchUsers (string query, SearchType searchBy, ResultCallback< PagedPublicUsersInfo > callback, int offset=0, int limit=100, string platformId=null, SearchPlatformType platformBy=SearchPlatformType.None) | ||||||
| Get user data from another user displayName or username. The query will be used to find the user with the most approximate username or display name. | |||||||
| void | SearchUsers (string query, ResultCallback< PagedPublicUsersInfo > callback, int offset=0, int limit=100) | ||||||
| Get user data from another user by displayName or username. The query will be used to find the user with the most approximate username or display name. | |||||||
| void | SearchUsersByOtherPlatformType (string query, PlatformType platformType, SearchPlatformType platformBy, ResultCallback< PagedPublicUsersInfo > callback, int offset=0, int limit=100) | ||||||
| Get user data from another user by displayName or username with respect to platformType. The query will be used to find the user with the most approximate username or display name. | |||||||
| void | SearchUsersByOtherPlatformId (string query, string platformId, SearchPlatformType platformBy, ResultCallback< PagedPublicUsersInfo > callback, int offset=0, int limit=100) | ||||||
| Searches for users on third-party platforms using their Username or Display Name. This function specifically targets users on platforms and utilizes the platform's DisplayName for the search. | |||||||
| void | GetUserPublicInfo (string userId, ResultCallback< GetUserPublicInfoResponse > callback) | ||||||
| Get public user info by user id. | |||||||
| void | GetUserByOtherPlatformUserIdV4 (GetUserPlatformType platformType, string platformUserId, ResultCallback< UserData > callback) | ||||||
| Get other user data by other platform userId. | |||||||
| void | BulkGetUserByOtherPlatformUserIds (PlatformType platformType, string[] otherPlatformUserId, ResultCallback< BulkPlatformUserIdResponse > callback) | ||||||
| Get other user data by other platform userId(s) (such as SteamID, for example) For Nintendo Platform you need to append Environment ID into the Platorm ID, with this format PlatformID:EnvironmentID. e.g csgas12312323f:dd1. | |||||||
| void | BulkGetUserByOtherPlatformUserIds (PlatformType platformType, string[] otherPlatformUserId, BulkGetUserByOtherPlatformUserIdsOptionalParameters optionalParameters, ResultCallback< BulkPlatformUserIdResponse > callback) | ||||||
| Get other user data by other platform userId(s) (such as SteamID, for example) For Nintendo Platform you need to append Environment ID into the Platorm ID, with this format PlatformID:EnvironmentID. e.g csgas12312323f:dd1. | |||||||
| void | GetCountryFromIP (ResultCallback< CountryInfo > callback) | ||||||
| Get spesific country from user IP. | |||||||
| void | GetCountryGroupV3 (ResultCallback< Country[]> callback) | ||||||
| Get all valid country codes for User Registration. | |||||||
| void | GetUserEligibleToPlay (ResultCallback< bool > callback) | ||||||
| Check if user has purchased the subscription and eligible to play. | |||||||
| void | RefreshTokenCallback (Action< string > refreshTokenCallback) | ||||||
| void | Verify2FACode (string mfaToken, TwoFAFactorType factor, string code, ResultCallback< TokenData, OAuthError > callback, bool rememberDevice=false) | ||||||
| Verify 2FA Code. | |||||||
| void | VerifyToken (ResultCallback callback) | ||||||
| OAuth2 token verification API. | |||||||
| void | Change2FAFactor (string mfaToken, TwoFAFactorType factor, ResultCallback< TokenData > callback) | ||||||
| Change 2FA Factor. | |||||||
| void | Disable2FAAuthenticator (ResultCallback callback) | ||||||
| Disable 2FA Authenticator. | |||||||
| void | Enable2FAAuthenticator (string code, ResultCallback callback) | ||||||
| Enable 2FA Authenticator, to enable the backup code 2FA factor, you should also call Enable2FABackupcodes. | |||||||
| void | GenerateSecretKeyFor3rdPartyAuthenticateApp (ResultCallback< SecretKey3rdPartyApp > callback) | ||||||
| Generate Secret Key For 3rd Party Authenticate Application. | |||||||
| void | GenerateBackUpCode (ResultCallback< TwoFACode > callback) | ||||||
| Generate 2FA BackUp Code, will give a new list of new backup code and make codes generated before invalid. | |||||||
| void | Disable2FABackupCodes (ResultCallback callback) | ||||||
| Disable 2FA Backup Codes. | |||||||
| void | Enable2FABackupCodes (ResultCallback< TwoFACode > callback) | ||||||
| Enable 2FA Backup Codes, this should be called if the 2FA not only using authenticator/3rd party factor. | |||||||
| void | GetBackUpCode (ResultCallback< TwoFACode > callback) | ||||||
| Get 2FA BackUp Code. | |||||||
| void | GetUserEnabledFactors (ResultCallback< Enable2FAFactors > callback) | ||||||
| Get User Enabled Factors. | |||||||
| void | Make2FAFactorDefault (TwoFAFactorType factor, ResultCallback callback) | ||||||
| Make 2FA Factor Default. | |||||||
| void | GetInputValidations (string languageCode, ResultCallback< InputValidation > callback, bool defaultOnEmpty=true) | ||||||
| Get IAM Input Validation. | |||||||
| void | UpdateUser (UpdateUserRequest updateUserRequest, ResultCallback< UserData > callback) | ||||||
| Update current user. | |||||||
| void | CreateHeadlessAccountAndResponseToken (string linkingToken, bool extendExp, ResultCallback callback) | ||||||
Create Headless Account for Account Linking
. | |||||||
| void | CreateHeadlessAccountAndResponseToken (string linkingToken, bool extendExp, ResultCallback< TokenData, OAuthError > callback) | ||||||
| Create Headless Account for Account Linking. | |||||||
| void | AuthenticationWithPlatformLink (string email, string password, string linkingToken, ResultCallback callback) | ||||||
| Authentication With PlatformLink for Account Linking. | |||||||
| void | AuthenticationWithPlatformLink (string email, string password, string linkingToken, ResultCallback< TokenData, OAuthError > callback) | ||||||
| Authentication With PlatformLink for Account Linking. | |||||||
| void | GetUserAvatar (string userId, ResultCallback< Texture2D > callback) | ||||||
| Request the Avatar of the given UserProfile. | |||||||
| void | GetPublisherUser (string userId, ResultCallback< GetPublisherUserResponse > callback) | ||||||
| Get Publisher User. | |||||||
| void | GetUserInformation (string userId, ResultCallback< GetUserInformationResponse > callback) | ||||||
| Get User Information. | |||||||
| void | GenerateOneTimeCode (PlatformType platformId, ResultCallback< GeneratedOneTimeCode > callback) | ||||||
| Generate one time linking code. | |||||||
| void | GenerateOneTimeCode (PlatformType platformId, GenerateOneTimeCodeOptionalParameters optionalParameters, ResultCallback< GeneratedOneTimeCode > callback) | ||||||
| Generate one time linking code. | |||||||
| void | RequestTokenByOneTimeLinkCode (string oneTimeLinkingCode, ResultCallback< TokenData > callback) | ||||||
| Generate user's token by one time link code. It requires a code which can be generated from GenerateOneTimeCode function. | |||||||
| void | RequestTokenByOneTimeLinkCode (string oneTimeLinkingCode, RequestTokenByOneTimeLinkCodeOptionalParameters optionalParameters, ResultCallback< TokenData > callback) | ||||||
| Generate user's token by one time link code. It requires a code which can be generated from GenerateOneTimeCode function. | |||||||
| void | GenerateCodeForPublisherTokenExchange (string publisherClientId, ResultCallback< CodeForTokenExchangeResponse > callback) | ||||||
| This function generate a code that can be exchanged into publisher namespace token (i.e. by web portal). | |||||||
| void | GenerateGameToken (string code, ResultCallback callback) | ||||||
| Generate publisher user's game token. Required a code from request game token. | |||||||
| void | LinkHeadlessAccountToCurrentFullAccount (LinkHeadlessAccountRequest linkHeadlessAccountRequest, ResultCallback callback) | ||||||
| Link headless account to current full account. | |||||||
| void | GetConflictResultWhenLinkHeadlessAccountToFullAccount (string oneTimeLinkCode, ResultCallback< ConflictLinkHeadlessAccountResult > callback) | ||||||
| Get conflict result when link headless account to current account by one time code. | |||||||
| void | CheckUserAccountAvailability (string displayName, ResultCallback callback) | ||||||
| Check user's account availability using displayName field. If the result is success or no error, it means the account already exists. | |||||||
| void | CheckUserAccountAvailability (string valueToCheck, AccountAvailabilityField field, ResultCallback callback) | ||||||
| Check user's account availability. If the result is success or no error, it means the account already exists. | |||||||
| void | GetConfigUniqueDisplayNameEnabled (ResultCallback< bool > callback) | ||||||
| Get user config value of uniqueDisplayNameEnabled. | |||||||
| void | GetConfigUserNameDisabled (ResultCallback< bool > callback) | ||||||
| Get user config value of userNameDisabled. | |||||||
| void | GetPublicSystemConfigValue (ResultCallback< GetPublicSystemConfigValueResponse > callback) | ||||||
| Get public system config value. | |||||||
| void | RetrieveUserThirdPartyPlatformToken (PlatformType platformType, ResultCallback< ThirdPartyPlatformTokenData, OAuthError > callback) | ||||||
| This function is used for retrieving third party platform token for user that login using third party, if user have not link requested platform in game namespace, will try to retrieving third party platform token from publisher namespace. Passing platform group name or it's member will return same access token that can be used across the platform members. Note: The third party platform and platform group covered for this is: (psn) ps4web, (psn) ps4, (psn) ps5, epicgames, twitch, awscognito. | |||||||
| void | ValidateUserInput (ValidateInputRequest request, ResultCallback< ValidateInputResponse > callback) | ||||||
| Validate user inputs by checking against existing input validation and profanity filter service (if enabled). | |||||||
| void | LoginWithEmailV4 (string email, string password, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Login to AccelByte account with email and password. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | LoginWithEmailV4 (string email, string password, LoginWithEmailV4OptionalParameters optionalParams, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Login to AccelByte account with email and password. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | LoginWithDeviceIdV4 (ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Login with device id. A user registered with this method is called a headless account because it doesn't have username yet. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | LoginWithDeviceIdV4 (LoginWithDeviceIdV4OptionalParameters optionalParams, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Login with device id. A user registered with this method is called a headless account because it doesn't have username yet. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | LoginWithOtherPlatformV4 (LoginPlatformType loginPlatformType, string platformToken, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Login with token from non AccelByte platforms, especially to support OIDC (with 2FA enable) identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | LoginWithOtherPlatformV4 (LoginPlatformType loginPlatformType, string platformToken, LoginWithOtherPlatformV4OptionalParameters optionalParams, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Login with token from non AccelByte platforms, especially to support OIDC (with 2FA enable) identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | LoginWithLastRefreshTokenV4 (ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Login with the latest refresh token stored on the device. Will returning an error if the token already expired. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | LoginWithLastRefreshTokenV4 (LoginWithRefreshTokenV4OptionalParameters optionalParams, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Login with the latest refresh token stored on the device. Will returning an error if the token already expired. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | LoginWithRefreshTokenV4 (string refreshToken, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Login with the latest refresh token stored on the device. Will returning an error if the token already expired. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | LoginWithRefreshTokenV4 (string refreshToken, LoginWithRefreshTokenV4OptionalParameters optionalParams, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Login with the latest refresh token stored on the device. Will returning an error if the token already expired. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | LoginWithCachedRefreshTokenV4 (string cacheKey, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Login with refresh token from local cache file. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | LoginWithCachedRefreshTokenV4 (string cacheKey, LoginWithRefreshTokenV4OptionalParameters optionalParams, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Login with refresh token from local cache file. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | CreateHeadlessAccountAndResponseTokenV4 (string linkingToken, bool extendExp, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Create Headless Account for Account Linking. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | CreateHeadlessAccountAndResponseTokenV4 (string linkingToken, bool extendExp, CreateHeadlessAccountAndResponseTokenV4OptionalParameters optionalParams, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Create Headless Account for Account Linking. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | AuthenticationWithPlatformLinkAndLoginV4 (string email, string password, string linkingToken, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Authentication With PlatformLink for Account Linking. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | AuthenticationWithPlatformLinkAndLoginV4 (string email, string password, string linkingToken, AuthenticationWithPlatformLinkAndLoginV4OptionalParameters optionalParams, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Authentication With PlatformLink for Account Linking. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method. | |||||||
| void | GenerateGameTokenV4 (string code, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Generate publisher user's game token. Required a code from request game token. | |||||||
| void | GenerateGameTokenV4 (string code, GenerateGameTokenV4OptionalParameters optionalParams, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Generate publisher user's game token. Required a code from request game token. | |||||||
| void | Verify2FACodeV4 (string mfaToken, TwoFAFactorType factor, string code, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Verify 2FA Code. | |||||||
| void | Verify2FACodeV4 (string mfaToken, TwoFAFactorType factor, string code, Verify2FACodeV4OptionalParameters optionalParams, ResultCallback< TokenData, OAuthError > loginCallback) | ||||||
| Verify 2FA Code. | |||||||
Public Attributes | |
| readonly OAuth2 | oAuth2 |
Static Public Attributes | |
| const int | MaxNumOfBulkGetUserByOtherPlatformUserId = 100 |
Protected Member Functions | |
| void | TriggerLoginResult (Result loginResult, Action< Error > onLoginFailed, Action onLoginSuccess) |
| void | TriggerLoginResult< T, U > (Result< T, U > loginResult, Action< U > onLoginFailed, Action< T > onLoginSuccess) |
| virtual void | TriggerLoginWithCachedRefreshToken (string cacheKey, ResultCallback< TokenData, OAuthError > callback) |
| virtual void | TriggerLogout (ResultCallback callback) |
| virtual void | TriggerGenerateCodeForPublisherTokenExchange (string authToken, string publisherNamespace, string publisherClientId, ResultCallback< CodeForTokenExchangeResponse > callback) |
| virtual void | TriggerLoginWithCachedRefreshTokenV4 (string cacheKey, ResultCallback< TokenDataV4, OAuthError > callback) |
| virtual void | TriggerLoginWithCachedRefreshTokenV4 (string cacheKey, LoginWithRefreshTokenV4OptionalParameters optionalParams, ResultCallback< TokenData, OAuthError > loginCallback) |
Properties | |
| UserSession | Session [get] |
| bool | TwoFAEnable = false [get] |
| Properties inherited from AccelByte.Core.WrapperBase | |
| Utils.AccelByteIdValidator | IdValidator [get] |
User class provides convenient interaction to user authentication and account management service (AccelByte IAM). This user class will manage user credentials to be used to access other services, including refreshing its token.
This is essentially a gateway to the "User" API; not to be confused with UserSession:ISession (which contains UserId, AuthorizationToken, etc).
|
inline |
Authentication With PlatformLink for Account Linking.
| Email to login | |
| password | Password to login |
| linkingToken | Token for platfrom type |
| extendExp | Token for other platfrom type |
| callback | Returns Result via callback when completed |
|
inline |
Authentication With PlatformLink for Account Linking.
| Email to login | |
| password | Password to login |
///
| linkingToken | Token for platfrom type |
| callback | Returns Result via callback when completed |
|
inline |
Authentication With PlatformLink for Account Linking. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
| Email address to login | |
| password | Password to login |
| linkingToken | Token for platfrom type |
| optionalParams | Optional parameter to modify the function |
| loginCallback | Returns Result via callback when completed |
|
inline |
Authentication With PlatformLink for Account Linking. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
| Email address to login | |
| password | Password to login |
| linkingToken | Token for platfrom type |
| loginCallback | Returns Result via callback when completed |
|
inline |
Get other user data by other platform userId(s) (such as SteamID, for example) For Nintendo Platform you need to append Environment ID into the Platorm ID, with this format PlatformID:EnvironmentID. e.g csgas12312323f:dd1.
|
inline |
Get other user data by other platform userId(s) (such as SteamID, for example) For Nintendo Platform you need to append Environment ID into the Platorm ID, with this format PlatformID:EnvironmentID. e.g csgas12312323f:dd1.
|
inline |
Change 2FA Factor.
| mfaToken | Multi-factor authentication Token |
| factor | The factor will return factor based on what factors is enabled |
| callback | Returns a result via callback when completed |
|
inline |
|
inline |
|
inline |
Create Headless Account for Account Linking.
| linkingToken | Token for platfrom type |
| extendExp | Extend expiration date of refresh token |
| callback | Returns Result via callback when completed |
|
inline |
Create Headless Account for Account Linking. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
| linkingToken | Token for platfrom type |
| extendExp | Extend expiration date of refresh token |
| optionalParams | Optional parameter to modify the function |
| loginCallback | Returns Result via callback when completed |
|
inline |
Create Headless Account for Account Linking. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
| linkingToken | Token for platfrom type |
| extendExp | Extend expiration date of refresh token |
| loginCallback | Returns Result via callback when completed |
|
inline |
Disable 2FA Authenticator.
| callback | Returns a result via callback when completed |
|
inline |
Disable 2FA Backup Codes.
| callback |
|
inline |
Enable 2FA Authenticator, to enable the backup code 2FA factor, you should also call Enable2FABackupcodes.
| code | Verification code |
| callback | Returns a result via callback when completed |
|
inline |
Enable 2FA Backup Codes, this should be called if the 2FA not only using authenticator/3rd party factor.
| callback |
|
inline |
Force to Link other platform's account to the currently logged in user.
| platformType | Other platform's type (Google, Steam, Facebook, etc) |
| platformUserId | UserId from other platform to be linked to |
| callback | Returns a Result via callback when completed |
|
inline |
Force to Link other platform's account to the currently logged in user.
| platformType | Other platform's type (Google, Steam, Facebook, etc) |
| platformUserId | UserId from other platform to be linked to |
| callback | Returns a Result via callback when completed |
|
inline |
Force to Link other platform's account to the currently logged in user.
| platformId | Specify platform's type, string type of this field makes support OpenID Connect (OIDC) |
| platformUserId | UserId from other platform to be linked to |
| callback | Returns a Result via callback when completed |
|
inline |
Generate 2FA BackUp Code, will give a new list of new backup code and make codes generated before invalid.
| callback |
|
inline |
This function generate a code that can be exchanged into publisher namespace token (i.e. by web portal).
| publisherClientId | The targeted game's publisher ClientID. |
| callback | A callback that will be called when the operation succeeded. |
|
inline |
Generate publisher user's game token. Required a code from request game token.
| code | code from request game token |
| callback | Return Result via callback when completed |
|
inline |
Generate publisher user's game token. Required a code from request game token.
| code | code from request game token |
| optionalParams | Optional parameter to modify the function |
| loginCallback | Return Result via callback when completed |
|
inline |
Generate publisher user's game token. Required a code from request game token.
| code | code from request game token |
| loginCallback | Return Result via callback when completed |
|
inline |
Generate one time linking code.
| platformId | The platform ID |
| optionalParameters | Optional parameter to be sent |
| callback | Result via callback when completed |
|
inline |
Generate one time linking code.
| platformId | The platform ID |
| callback | Return Result via callback when completed |
|
inline |
Generate Secret Key For 3rd Party Authenticate Application.
| callback | Returns a result via callback when completed |
|
inline |
Get 2FA BackUp Code.
| callback |
|
inline |
Get user config value of uniqueDisplayNameEnabled.
| callback | Return Result via callback when completed |
|
inline |
Get user config value of userNameDisabled.
| callback | Return Result via callback when completed |
|
inline |
Get conflict result when link headless account to current account by one time code.
| oneTimeLinkCode | One time link code value |
| callback | Return Result via callback when completed |
|
inline |
Get spesific country from user IP.
| callback | Returns a Result that contains country information via callback when completed |
|
inline |
|
inline |
|
inline |
|
inline |
Get IAM Input Validation.
| languageCode | Language Code for description |
| callback | Returns a result via callback when completed |
| defaultOnEmpty | will return default language if languageCode is empty or language not available |
|
inline |
Get array of other platforms this user linked to.
| callback | Returns a Result that contains PlatformLink array via callback when completed. |
|
inline |
Get public system config value.
| callback | Return Result via callback when completed. |
|
inline |
|
inline |
Request the Avatar of the given UserProfile.
| userId | The UserId of a public Profile |
| callback | Returns a result that contains a Texture2D |
|
inline |
Get other user data by other platform userId.
| platformType | User platform's type that needed to get user data (Google, Steam, Facebook, etc). |
| platformUserId | Platform UserId that needed to get user data. For Nintendo Platform, NSA ID need to be appended with Environment ID using colon as separator. e.g kmzwa8awaa:dd1. |
| callback | Return a Result that contains UserData when completed. |
|
inline |
Check if user has purchased the subscription and eligible to play.
| callback | Returns the boolean result whether the user is subscribed and eligible to play the game via callback when the operation is completed |
|
inline |
Get User Enabled Factors.
| callback |
|
inline |
|
inline |
This function will get user basic and public info of 3rd party account.
| platformId | Specify platform type, string type of this field makes support OpenID Connect (OIDC). |
| userIds | Array of user ids to get information on |
| callback | Returns a result that contains users' platform info via callback |
|
inline |
Get public user info by user id.
| userId | user id that needed to get user data |
| callback | Return a Result that contains usre public info when completed. |
|
inline |
Link headless account to current full account.
| linkHeadlessAccountRequest | struct that containing chosen namespace and one time link code |
| callback | Return Result via callback when completed |
|
inline |
Link other platform's account to the currently logged in user.
| platformType | Other platform's type (Google, Steam, Facebook, etc) |
| platformTicket | Ticket / token from other platform to be linked to |
| callback | Returns a Result via callback when completed |
|
inline |
Link other platform's account to the currently logged in user. especially to support OIDC.
| platformId | Specify platform's type, string type of this field makes support OpenID Connect (OIDC) |
| platformTicket | Ticket / token from other platform to be linked to |
| callback | Returns a Result via callback when completed |
|
inline |
Login with refresh token from local cache file.
| cacheKey | Login unique cache name |
|
inline |
Login with refresh token from local cache file. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
|
inline |
Login with refresh token from local cache file. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
|
inline |
Login with device id. A user registered with this method is called a headless account because it doesn't have username yet.
| callback | Returns Result via callback when completed |
|
inline |
|
inline |
Login with device id. A user registered with this method is called a headless account because it doesn't have username yet. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
| optionalParams | Optional parameter to modify the function |
| loginCallback | Returns Result via callback when completed |
|
inline |
Login with device id. A user registered with this method is called a headless account because it doesn't have username yet. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
| loginCallback | Returns Result via callback when completed |
|
inline |
Login to AccelByte account with email and password. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
| Email address | |
| password | Password to login |
| optionalParams | Optional parameter to modify the function |
| loginCallback | Returns Result via callback when completed |
|
inline |
Login to AccelByte account with email and password. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
| Email address | |
| password | Password to login |
| loginCallback | Returns Result via callback when completed |
|
inline |
Login with the latest refresh token stored on the device. Will returning an error if the token already expired. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
|
inline |
Login with the latest refresh token stored on the device. Will returning an error if the token already expired. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
|
inline |
Login with the latest refresh token stored on the device. Will returning an error if the token already epired.
| callback | Returns Result via callback when completed |
|
inline |
|
inline |
Login with the latest refresh token stored on the device. Will returning an error if the token already expired.
| refreshToken | The latest user's refresh token |
| callback | Returns Result via callback when completed |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Login with token from PS4/PS5 platforms. This will automatically register a user if the user identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet.
| platformType | Other platform type |
| platformToken | Token for other platform type |
| callback | Returns Result with OAuth Error via callback when completed |
| createHeadless | Set it to true because it doesn't have username yet |
| serviceLabel | (Early-access: for PS5 only currently)Used to validate PSN app when AppId is set on Admin Portal for PS4/PS5 |
| loginWithMacAddress | Include mac Address information for PSN and Xbox ban reporting |
|
inline |
Login with token from non AccelByte platforms. This will automatically register a user if the user identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet.
|
inline |
Login with token from non AccelByte platforms. This will automatically register a user if the user identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet.
| platformType | Other platform type |
| platformToken | Token for other platfrom type |
| callback | Returns Result via callback when completed |
|
inline |
Login with token from non AccelByte platforms, especially to support OIDC (with 2FA enable) identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet.
| platformId | Specify platform type, string type of this field makes support OpenID Connect (OIDC) |
| platformToken | Token for other platfrom type |
| callback | Returns Result via callback when completed |
| createHeadless | Set it to true because it doesn't have username yet |
|
inline |
Login with token from non AccelByte platforms, especially to support OIDC (with 2FA enable) identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet.
| platformId | Specify platform type, string type of this field makes support OpenID Connect (OIDC) |
| platformToken | Token for other platform type |
| callback | Returns Result with OAuth Error via callback when completed |
| createHeadless | Set it to true because it doesn't have username yet |
| serviceLabel | (Early-access: for PS5 only currently)Used to validate PSN app when AppId is set on Admin Portal for PS4/PS5 |
| loginWithMacAddress | Include mac Address information for PSN and Xbox ban reporting |
|
inline |
Login with token from non AccelByte platforms, especially to support OIDC (with 2FA enable) identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet.
| platformId | Specify platform type, string type of this field makes support OpenID Connect (OIDC) |
| platformToken | Token for other platform type |
| callback | Returns Result with OAuth Error via callback when completed |
| createHeadless | Set it to true because it doesn't have username yet |
| loginWithMacAddress | Include mac Address information for PSN and Xbox ban reporting |
|
inline |
Login with token from non AccelByte platforms, especially to support OIDC (with 2FA enable) identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet.
| platformId | Specify platform type, string type of this field makes support OpenID Connect (OIDC) |
| platformToken | Token for other platform type |
| callback | Returns Result with OAuth Error via callback when completed |
| createHeadless | Set it to true because it doesn't have username yet |
| serviceLabel | (Early-access: for PS5 only currently)Used to validate PSN app when AppId is set on Admin Portal for PS4/PS5 |
| loginWithMacAddress | Include mac Address information for PSN and Xbox ban reporting |
|
inline |
Login with token from non AccelByte platforms, especially to support OIDC (with 2FA enable) identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
|
inline |
Login with token from non AccelByte platforms, especially to support OIDC (with 2FA enable) identified by its platform type and platform token doesn't exist yet. A user registered with this method is called a headless account because it doesn't have username yet. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
|
inline |
Login with the latest refresh token stored on the device. Will returning an error if the token already expired. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
|
inline |
Login with the latest refresh token stored on the device. Will returning an error if the token already expired. The callback will consist of login queue ticket and token data. If token data is empty, game client is expected to poll the login ticket status until they receive a response that their position is zero and then claim the ticket. Ticket status can be get using LogInQueue API, and for claiming the token please call ClaimAccessToken method.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Make 2FA Factor Default.
| factor | The factor will return factor based on what factors is enabled |
| callback | Returns a result via callback when completed |
|
inline |
|
inline |
Refresh current login session. Will update current token.
| callback | Returns Result via callback when completed |
|
inline |
|
inline |
Refresh current login session. Will update current token.
| refreshToken | Refresh token |
| callback | Returns Result via callback when completed |
|
inline |
Register a user by giving username, password, and displayName.
| emailAddress | Email address of the user |
| password | Password to login |
| displayName | Any string can be used as display name, make it more flexible than Usernam |
| country | User's country, ISO3166-1 alpha-2 two letter, e.g. US. |
| dateOfBirth | User's date of birth, valid values are between 1905-01-01 until current date. |
| optionalParameters | Optional parameters for endpoint. Can be null. |
| callback | Returns a Result that contains UserData via callback |
|
inline |
|
inline |
Register a user by giving username, password, and displayName.
| emailAddress | Email address of the user, can be used as login username |
| password | Password to login, 8 to 32 characters, satisfy at least 3 out of 4 conditions(uppercase, lowercase letters, numbers and special characters) and should not have more than 2 equal characters in a row. |
| displayName | Any string can be used as display name, make it more flexible than Username |
| country | User's country, ISO3166-1 alpha-2 two letter, e.g. US. |
| dateOfBirth | User's date of birth, valid values are between 1905-01-01 until current date. |
| uniqueDisplayName | This is required when uniqueDisplayNameEnabled/UNIQUE_DISPLAY_NAME_ENABLED is true. |
| optionalParameters | Optional parameters for endpoint. Can be null. |
| callback | Returns a Result that contains RegisterUserResponse via callback |
|
inline |
Register a user by giving username, password, and displayName.
| emailAddress | Email address of the user, can be used as login username |
| password | Password to login, 8 to 32 characters, satisfy at least 3 out of 4 conditions(uppercase, lowercase letters, numbers and special characters) and should not have more than 2 equal characters in a row. |
| displayName | Any string can be used as display name, make it more flexible than Username |
| country | User's country, ISO3166-1 alpha-2 two letter, e.g. US. |
| dateOfBirth | User's date of birth, valid values are between 1905-01-01 until current date. |
| uniqueDisplayName | This is required when uniqueDisplayNameEnabled/UNIQUE_DISPLAY_NAME_ENABLED is true. |
| callback | Returns a Result that contains RegisterUserResponse via callback |
|
inline |
Register a user while optionally accepting legal policies, password, and displayName.
| request | To accept policies, fill acceptedPolicies field |
| callback | Returns a Result that contains RegisterUserResponse via callback |
|
inline |
Register a user by giving username, password, and displayName.
| emailAddress | Email address of the user, can be used as login username |
| username | The username can be used as login username, case insensitive, alphanumeric with allowed symbols underscore (_) and dot (.) |
| password | Password to login, 8 to 32 characters, satisfy at least 3 out of 4 conditions(uppercase, lowercase letters, numbers and special characters) and should not have more than 2 equal characters in a row. |
| displayName | Any string can be used as display name, make it more flexible than Username |
| country | User's country, ISO3166-1 alpha-2 two letter, e.g. US. Use GetCountryV3() to fetch the latest Country list |
| dateOfBirth | User's date of birth, valid values are between 1905-01-01 until current date. |
| uniqueDisplayName | This is required when uniqueDisplayNameEnabled/UNIQUE_DISPLAY_NAME_ENABLED is true. |
| optionalParameters | Optional parameters for endpoint. Can be null. |
| callback | Returns a Result that contains RegisterUserResponse via callback |
|
inline |
Register a user by giving username, password, and displayName.
| emailAddress | Email address of the user, can be used as login username |
| username | The username can be used as login username, case insensitive, alphanumeric with allowed symbols underscore (_) and dot (.) |
| password | Password to login, 8 to 32 characters, satisfy at least 3 out of 4 conditions(uppercase, lowercase letters, numbers and special characters) and should not have more than 2 equal characters in a row. |
| displayName | Any string can be used as display name, make it more flexible than Username |
| country | User's country, ISO3166-1 alpha-2 two letter, e.g. US. Use GetCountryV3() to fetch the latest Country list |
| dateOfBirth | User's date of birth, valid values are between 1905-01-01 until current date. |
| uniqueDisplayName | This is required when uniqueDisplayNameEnabled/UNIQUE_DISPLAY_NAME_ENABLED is true. |
| callback | Returns a Result that contains RegisterUserResponse via callback |
|
inline |
Register a user by giving username, password, and displayName.
| emailAddress | Email address of the user, can be used as login username |
| username | The username can be used as login username, case insensitive, alphanumeric with allowed symbols underscore (_) and dot (.) |
| password | Password to login, 8 to 32 characters, satisfy at least 3 out of 4 conditions(uppercase, lowercase letters, numbers and special characters) and should not have more than 2 equal characters in a row. |
| displayName | Any string can be used as display name, make it more flexible than Username |
| country | User's country, ISO3166-1 alpha-2 two letter, e.g. US. Use GetCountryV3() to fetch the latest Country list |
| dateOfBirth | User's date of birth, valid values are between 1905-01-01 until current date. |
| optionalParameters | Optional parameters for endpoint. Can be null. |
| callback | Returns a Result that contains RegisterUserResponse via callback |
|
inline |
Register a user by giving username, password, and displayName.
| emailAddress | Email address of the user, can be used as login username |
| username | The username can be used as login username, case insensitive, alphanumeric with allowed symbols underscore (_) and dot (.) |
| password | Password to login, 8 to 32 characters, satisfy at least 3 out of 4 conditions(uppercase, lowercase letters, numbers and special characters) and should not have more than 2 equal characters in a row. |
| displayName | Any string can be used as display name, make it more flexible than Username |
| country | User's country, ISO3166-1 alpha-2 two letter, e.g. US. Use GetCountryV3() to fetch the latest Country list |
| dateOfBirth | User's date of birth, valid values are between 1905-01-01 until current date. |
| callback | Returns a Result that contains RegisterUserResponse via callback |
|
inline |
Generate user's token by one time link code. It requires a code which can be generated from GenerateOneTimeCode function.
| oneTimeLinkingCode | Generated code from GenerateOneTimeCode |
| optionalParameters | Optional parameter to be sent |
| callback | Result via callback when completed |
|
inline |
Generate user's token by one time link code. It requires a code which can be generated from GenerateOneTimeCode function.
| oneTimeLinkingCode | Generated code from GenerateOneTimeCode |
| callback | Result via callback when completed |
|
inline |
Reset password for a username.
| resetCode | Reset password code |
| userName | Username with forgotten password |
| newPassword | New password |
| callback | Returns a Result via callback when completed |
|
inline |
This function is used for retrieving third party platform token for user that login using third party, if user have not link requested platform in game namespace, will try to retrieving third party platform token from publisher namespace. Passing platform group name or it's member will return same access token that can be used across the platform members. Note: The third party platform and platform group covered for this is: (psn) ps4web, (psn) ps4, (psn) ps5, epicgames, twitch, awscognito.
| platformType | Platform type value |
| callback | Return Result via callback when completed |
|
inline |
Get user data from another user by displayName or username. The query will be used to find the user with the most approximate username or display name.
| query | Display name or username that needed to get user data. |
| callback | Return a Result that contains UsersData when completed. |
| offset | Targeted offset query filter. |
| limit | Targeted limit query filter. |
|
inline |
Get user data from another user displayName or username. The query will be used to find the user with the most approximate username or display name.
| query | Display name or username that needed to get user data. |
| searchBy | Filter the responded PagedPublicUsersInfo by SearchType. Choose the SearchType.ALL if you want to be responded with all query type. |
| callback | Return a Result that contains UsersData when completed. |
| limit | Targeted limit query filter. |
| offset | Targeted offset query filter. |
| platformId | Specify platform type, string type of this field makes support OpenID Connect (OIDC). |
| platformBy | Filter the responded PagedPublicUsersInfo by SearchPlatformType. |
|
inline |
Searches for users on third-party platforms using their Username or Display Name. This function specifically targets users on platforms and utilizes the platform's DisplayName for the search.
| query | Targeted user's Username or Display Name. |
| platformId | Specify platform type, string type of this field makes support OpenID Connect (OIDC). |
| platformBy | Filter the responded PagedPublicUsersInfo by SearchPlatformType. |
| callback | Return a Result that contains UsersData when completed. |
| offset | Targeted offset query filter. |
| limit | Targeted limit query filter. |
|
inline |
Get user data from another user by displayName or username with respect to platformType. The query will be used to find the user with the most approximate username or display name.
| query | Targeted user's Username or Display Name. |
| platformType | The PlatformType (Steam, PS4, Xbox, etc). |
| platformBy | Filter the responded PagedPublicUsersInfo by SearchPlatformType. |
| callback | Return a Result that contains UsersData when completed. |
| offset | Targeted offset query filter. |
| limit | Targeted limit query filter. |
|
inline |
Trigger an email that contains reset password code to be sent to user.
| userName | Username to be sent reset password code to. |
| callback | Returns a Result via callback when completed |
|
inline |
|
inline |
|
inline |
|
inline |
Request for verification code to be sent via provided email address.
This is used to generate and send the code for a user that is going to register to be used for email verification when mandatoryEmailVerificationEnabled is configured on the namespace.
| emailAddress | Email address to send verification code to. |
| optionalParameters | Endpoint optional parameters. Can be null. |
| callback | Returns a Result via callback when operation finishes. |
|
inline |
Unlink other platform that has been linked to the currently logged in user. The change will take effect after user has been re-login. Note: Use this API to unlink all the user's current account from their other accounts in other platforms within the game namespace. It resolves issues with the old API by ensuring successful unlinking across multiple namespaces. After calling this API, if a user logs in to any namespace with the same 3rd platform account, they will be logged in as a different account.
| platformType | Other platform's type (Google, Steam, Facebook, etc) |
| callback | Returns a result via callback when completed |
|
inline |
Unlink other platform that has been linked to the currently logged in user. The change will take effect after user has been re-login. This function specially to support OIDC. Note: Use this API to unlink all the user's current account from their other accounts in other platforms within the game namespace. It resolves issues with the old API by ensuring successful unlinking across multiple namespaces. After calling this API, if a user logs in to any namespace with the same 3rd platform account, they will be logged in as a different account.
| platformType | Other platform's type (Google, Steam, Facebook, etc) |
| callback | Returns a result via callback when completed |
|
inline |
Unlink other platform that has been linked to the currently logged in user. The change will take effect after user has been re-login.
| platformType | Other platform's type (Google, Steam, Facebook, etc) |
| callback | Returns a result via callback when completed |
|
inline |
Unlink other platform that has been linked to the currently logged in user. The change will take effect after user has been re-login. This function specially to support OIDC.
| platformId | Specify platform type, string type of this field makes support OpenID Connect (OIDC) |
| callback | Returns a result via callback when completed |
|
inline |
|
inline |
|
inline |
Update current user.
| updateUserRequest | Update user request variables to be updated |
| callback | Return Result via callback when completed |
|
inline |
Upgrade a headless account with username and password. User must be logged in before this method can be used.
|
inline |
Upgrade a headless account with username and password. User must be logged in before this method can be used.
|
inline |
Upgrade a headless account. User must be logged in first then call SendUpgradeVerificationCode code to get verification code send to their email.
|
inline |
|
inline |
Upgrade a headless account with username and password. User must be logged in before this method can be used.
|
inline |
Validate user inputs by checking against existing input validation and profanity filter service (if enabled).
| request | Request body, unused fields can be null |
| callback | Returns a result via callback when completed |
|
inline |
|
inline |
Verify 2FA Code.
| mfaToken | Multi-factor authentication Token |
| factor | The factor will return factor based on what factors is enabled |
| code | Verification code |
| callback | Returns a result via callback when completed |
| rememberDevice | Will record device token when true |
|
inline |
Verify 2FA Code.
| mfaToken | Multi-factor authentication Token |
| factor | The factor will return factor based on what factors is enabled |
| code | Verification code |
| loginCallback | Returns a result via callback when completed |
|
inline |
Verify 2FA Code.
| mfaToken | Multi-factor authentication Token |
| factor | The factor will return factor based on what factors is enabled |
| code | Verification code |
| optionalParams | Optional parameter to modify the function |
| loginCallback | Returns a result via callback when completed |
|
inline |
OAuth2 token verification API.
| callback |