Package com.bitheads.braincloud.services
Class IdentityService
java.lang.Object
com.bitheads.braincloud.services.IdentityService
public class IdentityService extends Object
-
Constructor Summary
Constructors Constructor Description IdentityService(BrainCloudClient client) -
Method Summary
Modifier and Type Method Description voidattachAdvancedIdentity(AuthenticationType authenticationType, AuthenticationIds ids, String extraJson, IServerCallback callback)Attach the user's credentials to the current profile.voidattachAppleIdentity(String appleId, String authenticationToken, IServerCallback callback)Attach a Google identity to the current profile.voidattachBlockchainIdentity(String blockchainConfig, String publicKey, IServerCallback callback)Attaches the given block chain public key identity to the current profile.voidattachEmailIdentity(String email, String password, IServerCallback callback)Attach a Email and Password identity to the current profile.voidattachFacebookIdentity(String facebookId, String authenticationToken, IServerCallback callback)Attach the user's Facebook credentials to the current profile.voidattachFacebookLimitedIdentity(String facebookLimitedId, String authenticationToken, IServerCallback callback)Attach the user's FacebookLimited credentials to the current profile.voidattachGameCenterIdentity(String gameCenterId, IServerCallback callback)Attach a Game Center identity to the current profile.voidattachGoogleIdentity(String googleId, String authenticationToken, IServerCallback callback)Attach a Google identity to the current profile.voidattachGoogleOpenIdIdentity(String googleOpenId, String authenticationToken, IServerCallback callback)Attach a Google identity to the current profile.voidattachNonLoginUniversalId(String externalId, IServerCallback callback)Attaches a univeral id to the current profile with no login capability.voidattachOculusIdentity(String oculusId, String oculusNonce, IServerCallback callback)Attach the user's Oculus credentials to the current profile.voidattachParentWithIdentity(String externalId, String authenticationToken, AuthenticationType authenticationType, String externalAuthName, boolean forceCreate, IServerCallback callback)Attach a new identity to a parent app Service Name - identity Service Operation - ATTACH_PARENT_WITH_IDENTITYvoidattachParseIdentity(String parseId, String authenticationToken, IServerCallback callback)Attach a Parse identity to the current profile.voidattachPeerProfile(String peer, String externalId, String authenticationToken, AuthenticationType authenticationType, String externalAuthName, boolean forceCreate, IServerCallback callback)Attaches a peer identity to this player's profile Service Name - identity Service Operation - ATTACH_PEER_PROFILEvoidattachSteamIdentity(String steamId, String sessionTicket, IServerCallback callback)Attach a Steam (userid + steamsessionTicket) identity to the current profile.voidattachTwitterIdentity(String twitterId, String authenticationToken, String secret, IServerCallback callback)Attach the user's Twitter credentials to the current profile.voidattachUltraIdentity(String ultraUsername, String ultraIdToken, IServerCallback callback)Attach an Ultra identity to the current profile.voidattachUniversalIdentity(String userId, String password, IServerCallback callback)Attach a Universal (userid + password) identity to the current profile.voidchangeEmailIdentity(String oldEmailAddress, String password, String newEmailAddress, boolean updateContactEmail, IServerCallback callback)Allows email identity email address to be changed Service Name - identity Service Operation - CHANGE_EMAIL_IDENTITYvoiddetachAdvancedIdentity(AuthenticationType authenticationType, String externalId, boolean continueAnon, String extraJson, IServerCallback callback)Detach the identity from this profile.voiddetachAppleIdentity(String appleId, boolean continueAnon, IServerCallback callback)Detach the Google identity from the current profile.voiddetachBlockchainIdentity(String blockchainConfig, IServerCallback callback)Detaches the blockchain identity to the current profile.voiddetachEmailIdentity(String email, boolean continueAnon, IServerCallback callback)Detach the e-mail identity from the current profile Service Name - Identity Service Operation - DetachvoiddetachFacebookIdentity(String facebookId, boolean continueAnon, IServerCallback callback)Detach the Facebook identity from this profile.voiddetachFacebookLimitedIdentity(String facebookLimitedId, boolean continueAnon, IServerCallback callback)Detach the FacebookLimited identity from this profile.voiddetachGameCenterIdentity(String gameCenterId, boolean continueAnon, IServerCallback callback)Detach the Game Center identity from the current profile.voiddetachGoogleIdentity(String googleId, boolean continueAnon, IServerCallback callback)Detach the Google identity from the current profile.voiddetachGoogleOpenIdIdentity(String googleOpenId, boolean continueAnon, IServerCallback callback)Detach the Google identity from the current profile.voiddetachOculusIdentity(String oculusId, boolean continueAnon, IServerCallback callback)Detach the Oculus identity from this profile.voiddetachParent(IServerCallback callback)Detaches parent from this player's profile Service Name - identity Service Operation - DETACH_PARENTvoiddetachParseIdentity(String parseId, boolean continueAnon, IServerCallback callback)Detach the Parse identity from the current profile.voiddetachPeer(String peer, IServerCallback callback)Detaches a peer identity from this player's profile Service Name - identity Service Operation - DETACH_PEERvoiddetachSteamIdentity(String steamId, boolean continueAnon, IServerCallback callback)Detach the steam identity from the current profile Service Name - Identity Service Operation - DetachvoiddetachTwitterIdentity(String twitterId, boolean continueAnon, IServerCallback callback)Detach the Twitter identity from this profile.voiddetachUltraIdentity(String ultraUsername, boolean continueAnon, IServerCallback callback)Detach the ultra identity from the current profile Service Name - Identity Service Operation - DetachvoiddetachUniversalIdentity(String userId, boolean continueAnon, IServerCallback callback)Detach the universal identity from the current profile Service Name - Identity Service Operation - DetachvoidgetChildProfiles(boolean includeSummaryData, IServerCallback callback)Returns a list of all child profiles in child Apps Service Name - Identity Service Operation - GET_CHILD_PROFILESvoidgetExpiredIdentities(IServerCallback callback)Retrieve list of expired identities Service Name - Identity Service Operation - GET_EXPIRED_IDENTITIESvoidgetIdentities(IServerCallback callback)Retrieve list of identities Service Name - Identity Service Operation - GET_IDENTITIESvoidgetPeerProfiles(IServerCallback callback)Returns a list of peer profiles attached to this user Service Name - identity Service Operation - GET_PEER_PROFILESvoidmergeAdvancedIdentity(AuthenticationType authenticationType, AuthenticationIds ids, String extraJson, IServerCallback callback)Merge the profile associated with the provided credentials with the current profile.voidmergeAppleIdentity(String appleId, String authenticationToken, IServerCallback callback)Merge the profile associated with the specified Google identity with the current profile.voidmergeEmailIdentity(String email, String password, IServerCallback callback)Merge the profile associated with the provided e=mail with the current profile.voidmergeFacebookIdentity(String facebookId, String authenticationToken, IServerCallback callback)Merge the profile associated with the provided Facebook credentials with the current profile.voidmergeFacebookLimitedIdentity(String facebookLimitedId, String authenticationToken, IServerCallback callback)Merge the profile associated with the provided FacebookLimited credentials with the current profile.voidmergeGameCenterIdentity(String gameCenterId, IServerCallback callback)Merge the profile associated with the specified Game Center identity with the current profile.voidmergeGoogleIdentity(String googleId, String authenticationToken, IServerCallback callback)Merge the profile associated with the specified Google identity with the current profile.voidmergeGoogleOpenIdIdentity(String googleOpenId, String authenticationToken, IServerCallback callback)Merge the profile associated with the specified Google identity with the current profile.voidmergeOculusIdentity(String oculusId, String oculusNonce, IServerCallback callback)Merge the profile associated with the provided Oculus credentials with the current profile.voidmergeParseIdentity(String parseId, String authenticationToken, IServerCallback callback)Merge the profile associated with the specified Parse identity with the current profile.voidmergeSteamIdentity(String steamId, String sessionTicket, IServerCallback callback)Merge the profile associated with the provided steam userid with the current profile.voidmergeTwitterIdentity(String twitterId, String authenticationToken, String secret, IServerCallback callback)Merge the profile associated with the provided Twitter credentials with the current profile.voidmergeUltraIdentity(String ultraUsername, String ultraIdToken, IServerCallback callback)Merge the profile associated with the provided ultra account with the current profile.voidmergeUniversalIdentity(String userId, String password, IServerCallback callback)Merge the profile associated with the provided e=mail with the current profile.voidrefreshIdentity(String externalId, String authenticationToken, AuthenticationType authenticationType, IServerCallback callback)Refreshes an identity for this player Service Name - identity Service Operation - REFRESH_IDENTITYvoidswitchToChildProfile(String childProfileId, String childAppId, boolean forceCreate, IServerCallback callback)Switch to a Child Profile Service Name - Identity Service Operation - SWITCH_TO_CHILD_PROFILEvoidswitchToParentProfile(String parentLevelName, IServerCallback callback)Switch to a Parent Profile Service Name - Identity Service Operation - SWITCH_TO_PARENT_PROFILEvoidswitchToSingletonChildProfile(String childAppId, boolean forceCreate, IServerCallback callback)Switches to a child profile of an app when only one profile exists If multiple profiles exist this returns an error Service Name - Identity Service Operation - SWITCH_TO_CHILD_PROFILEvoidupdateUniversalIdLogin(String externalId, IServerCallback callback)Updates univeral id of the current profile.
-
Constructor Details
-
IdentityService
-
-
Method Details
-
attachFacebookIdentity
public void attachFacebookIdentity(String facebookId, String authenticationToken, IServerCallback callback)Attach the user's Facebook credentials to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
facebookId- The facebook id of the userauthenticationToken- The validated token from the Facebook SDK (that will be further validated when sent to the bC service)callback- The method to be invoked when the server response is received Errors to watch for: SWITCHING_PROFILES - this means that the Facebook identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call AuthenticateFacebook().
-
mergeFacebookIdentity
public void mergeFacebookIdentity(String facebookId, String authenticationToken, IServerCallback callback)Merge the profile associated with the provided Facebook credentials with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
facebookId- The facebook id of the userauthenticationToken- The validated token from the Facebook SDK (that will be further validated when sent to the bC service)callback- The method to be invoked when the server response is received
-
detachFacebookIdentity
public void detachFacebookIdentity(String facebookId, boolean continueAnon, IServerCallback callback)Detach the Facebook identity from this profile. Service Name - Identity Service Operation - Detach- Parameters:
facebookId- The facebook id of the usercontinueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachAdvancedIdentity
public void attachAdvancedIdentity(AuthenticationType authenticationType, AuthenticationIds ids, String extraJson, IServerCallback callback)Attach the user's credentials to the current profile. Service Name - identity Service Operation - Attach- Parameters:
authenticationType- Universal, Email, Facebook, etcids- Auth IDs structureextraJson- Additional to piggyback along with the call, to be picked up by pre- or post- hooks. Leave empty string for no extraJson.callback- The method to be invoked when the server response is received Errors to watch for: SWITCHING_PROFILES - this means that the identity you provided already points to a different profile. You will likely want to offer the user the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call AuthenticateAdvanced().
-
mergeAdvancedIdentity
public void mergeAdvancedIdentity(AuthenticationType authenticationType, AuthenticationIds ids, String extraJson, IServerCallback callback)Merge the profile associated with the provided credentials with the current profile. Service Name - identity Service Operation - Merge- Parameters:
authenticationType- Universal, Email, Facebook, etcids- Auth IDs structureextraJson- Additional to piggyback along with the call, to be picked up by pre- or post- hooks. Leave empty string for no extraJson.callback- The method to be invoked when the server response is received
-
detachAdvancedIdentity
public void detachAdvancedIdentity(AuthenticationType authenticationType, String externalId, boolean continueAnon, String extraJson, IServerCallback callback)Detach the identity from this profile. Service Name - identity Service Operation - Detach- Parameters:
authenticationType- Universal, Email, Facebook, etcexternalId- User IDcontinueAnon- Proceed even if the profile will revert to anonymous?extraJson- Additional to piggyback along with the call, to be picked up by pre- or post- hooks. Leave empty string for no extraJson.callback- The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set in_continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachFacebookLimitedIdentity
public void attachFacebookLimitedIdentity(String facebookLimitedId, String authenticationToken, IServerCallback callback)Attach the user's FacebookLimited credentials to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
facebookLimitedId- The facebookLimited id of the userauthenticationToken- The validated token from the Facebook SDK (that will be further validated when sent to the bC service)callback- The method to be invoked when the server response is received Errors to watch for: SWITCHING_PROFILES - this means that the FacebookLimited identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call AuthenticateFacebookLimited().
-
mergeFacebookLimitedIdentity
public void mergeFacebookLimitedIdentity(String facebookLimitedId, String authenticationToken, IServerCallback callback)Merge the profile associated with the provided FacebookLimited credentials with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
facebookLimitedId- The facebookLimited id of the userauthenticationToken- The validated token from the Facebook SDK (that will be further validated when sent to the bC service)callback- The method to be invoked when the server response is received
-
detachFacebookLimitedIdentity
public void detachFacebookLimitedIdentity(String facebookLimitedId, boolean continueAnon, IServerCallback callback)Detach the FacebookLimited identity from this profile. Service Name - Identity Service Operation - Detach- Parameters:
facebookLimitedId- The facebookLimited id of the usercontinueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachOculusIdentity
Attach the user's Oculus credentials to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
oculusId- The Oculus id of the useroculusNonce- token from the Oculus SDKcallback- The method to be invoked when the server response is received Errors to watch for: SWITCHING_PROFILES - this means that the Oculus identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call AuthenticateOculus().
-
mergeOculusIdentity
Merge the profile associated with the provided Oculus credentials with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
oculusId- The oculus id of the useroculusNonce- token from the Oculus SDKcallback- The method to be invoked when the server response is received
-
detachOculusIdentity
Detach the Oculus identity from this profile. Service Name - Identity Service Operation - Detach- Parameters:
oculusId- The oculus id of the usercontinueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachGameCenterIdentity
Attach a Game Center identity to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
gameCenterId- The player's game center id (use the playerID property from the local GKPlayer object)callback- The method to be invoked when the server response is received Errors to watch for: SWITCHING_PROFILES - this means that the Facebook identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call this method again.
-
mergeGameCenterIdentity
Merge the profile associated with the specified Game Center identity with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
gameCenterId- The player's game center id (use the playerID property from the local GKPlayer object)callback- The method to be invoked when the server response is received
-
detachGameCenterIdentity
public void detachGameCenterIdentity(String gameCenterId, boolean continueAnon, IServerCallback callback)Detach the Game Center identity from the current profile. Service Name - Identity Service Operation - Detach- Parameters:
gameCenterId- The player's game center id (use the playerID property from the local GKPlayer object)continueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachGoogleIdentity
public void attachGoogleIdentity(String googleId, String authenticationToken, IServerCallback callback)Attach a Google identity to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
googleId- The google id of the playerauthenticationToken- The validated token from the Google SDK (that will be further validated when sent to the bC service)callback- The callback method Errors to watch for: SWITCHING_PROFILES - this means that the Google identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call this method again.
-
mergeGoogleIdentity
public void mergeGoogleIdentity(String googleId, String authenticationToken, IServerCallback callback)Merge the profile associated with the specified Google identity with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
googleId- The google id of the playerauthenticationToken- The validated token from the Google SDK (that will be further validated when sent to the bC service)callback- The callback method
-
detachGoogleIdentity
Detach the Google identity from the current profile. Service Name - Identity Service Operation - Detach- Parameters:
googleId- The google id of the playercontinueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachGoogleOpenIdIdentity
public void attachGoogleOpenIdIdentity(String googleOpenId, String authenticationToken, IServerCallback callback)Attach a Google identity to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
googleOpenId- The google id of the playerauthenticationToken- The validated token from the Google SDK (that will be further validated when sent to the bC service)callback- The callback method Errors to watch for: SWITCHING_PROFILES - this means that the Google identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call this method again.
-
mergeGoogleOpenIdIdentity
public void mergeGoogleOpenIdIdentity(String googleOpenId, String authenticationToken, IServerCallback callback)Merge the profile associated with the specified Google identity with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
googleOpenId- The google id of the playerauthenticationToken- The validated token from the Google SDK (that will be further validated when sent to the bC service)callback- The callback method
-
detachGoogleOpenIdIdentity
public void detachGoogleOpenIdIdentity(String googleOpenId, boolean continueAnon, IServerCallback callback)Detach the Google identity from the current profile. Service Name - Identity Service Operation - Detach- Parameters:
googleOpenId- The google id of the playercontinueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachAppleIdentity
public void attachAppleIdentity(String appleId, String authenticationToken, IServerCallback callback)Attach a Google identity to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
appleId- The google id of the playerauthenticationToken- The validated token from the Google SDK (that will be further validated when sent to the bC service)callback- The callback method Errors to watch for: SWITCHING_PROFILES - this means that the Google identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call this method again.
-
mergeAppleIdentity
public void mergeAppleIdentity(String appleId, String authenticationToken, IServerCallback callback)Merge the profile associated with the specified Google identity with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
appleId- The google id of the playerauthenticationToken- The validated token from the Google SDK (that will be further validated when sent to the bC service)callback- The callback method
-
detachAppleIdentity
Detach the Google identity from the current profile. Service Name - Identity Service Operation - Detach- Parameters:
appleId- The google id of the playercontinueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachEmailIdentity
Attach a Email and Password identity to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
email- The player's e-mail addresspassword- The player's passwordcallback- The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure Errors to watch for: SWITCHING_PROFILES - this means that the email address you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and then call AuthenticateEmailPassword().
-
mergeEmailIdentity
Merge the profile associated with the provided e=mail with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
email- The player's e-mail addresspassword- The player's passwordcallback- The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure
-
detachEmailIdentity
Detach the e-mail identity from the current profile Service Name - Identity Service Operation - Detach- Parameters:
email- The player's e-mail addresscontinueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachUniversalIdentity
Attach a Universal (userid + password) identity to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
userId- The player's user IDpassword- The player's passwordcallback- The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure Errors to watch for: SWITCHING_PROFILES - this means that the email address you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and then call AuthenticateEmailPassword().
-
mergeUniversalIdentity
Merge the profile associated with the provided e=mail with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
userId- The player's user IDpassword- The player's passwordcallback- The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure
-
detachUniversalIdentity
Detach the universal identity from the current profile Service Name - Identity Service Operation - Detach- Parameters:
userId- The player's user IDcontinueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachSteamIdentity
Attach a Steam (userid + steamsessionTicket) identity to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
steamId- String representation of 64 bit steam idsessionTicket- The player's session ticket (hex encoded)callback- The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure . Errors to watch for: SWITCHING_PROFILES - this means that the email address you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and then call AuthenticateSteam().
-
mergeSteamIdentity
Merge the profile associated with the provided steam userid with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
steamId- String representation of 64 bit steam idsessionTicket- The player's session ticket (hex encoded)callback- The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure
-
detachSteamIdentity
Detach the steam identity from the current profile Service Name - Identity Service Operation - Detach- Parameters:
steamId- String representation of 64 bit steam idcontinueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachUltraIdentity
public void attachUltraIdentity(String ultraUsername, String ultraIdToken, IServerCallback callback)Attach an Ultra identity to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
ultraUsername- it's what the user uses to log into the Ultra endpoint initiallyultraIdToken- The "id_token" taken from Ultra's JWT.callback- The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure . Errors to watch for: SWITCHING_PROFILES - this means that the email address you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and then call AuthenticateUltra().
-
mergeUltraIdentity
public void mergeUltraIdentity(String ultraUsername, String ultraIdToken, IServerCallback callback)Merge the profile associated with the provided ultra account with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
ultraUsername- it's what the user uses to log into the Ultra endpoint initiallyultraIdToken- The "id_token" taken from Ultra's JWT.callback- The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure
-
detachUltraIdentity
public void detachUltraIdentity(String ultraUsername, boolean continueAnon, IServerCallback callback)Detach the ultra identity from the current profile Service Name - Identity Service Operation - Detach- Parameters:
ultraUsername- it's what the user uses to log into the Ultra endpoint initiallycontinueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Performs the success callback on success, failure callback on failure Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachTwitterIdentity
public void attachTwitterIdentity(String twitterId, String authenticationToken, String secret, IServerCallback callback)Attach the user's Twitter credentials to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
twitterId- The Twitter id of the userauthenticationToken- The authentication token derrived from the twitter APIssecret- The secret given when attempting to link with Twittercallback- The method to be invoked when the server response is received Errors to watch for: SWITCHING_PROFILES - this means that the Twitter identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call AuthenticateTwitter().
-
mergeTwitterIdentity
public void mergeTwitterIdentity(String twitterId, String authenticationToken, String secret, IServerCallback callback)Merge the profile associated with the provided Twitter credentials with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
twitterId- The Twitter id of the userauthenticationToken- The authentication token derrived from the twitter APIssecret- The secret given when attempting to link with Twittercallback- The method to be invoked when the server response is received
-
detachTwitterIdentity
public void detachTwitterIdentity(String twitterId, boolean continueAnon, IServerCallback callback)Detach the Twitter identity from this profile. Service Name - Identity Service Operation - Detach- Parameters:
twitterId- The Twitter id of the usercontinueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
attachParseIdentity
public void attachParseIdentity(String parseId, String authenticationToken, IServerCallback callback)Attach a Parse identity to the current profile. Service Name - Identity Service Operation - Attach- Parameters:
parseId- The parse id of the playerauthenticationToken- The validated token from Parse (that will be further validated when sent to the bC service)callback- The callback method Errors to watch for: SWITCHING_PROFILES - this means that the Parse identity you provided already points to a different profile. You will likely want to offer the player the choice to *SWITCH* to that profile, or *MERGE* the profiles. To switch profiles, call ClearSavedProfileID() and call this method again.
-
mergeParseIdentity
public void mergeParseIdentity(String parseId, String authenticationToken, IServerCallback callback)Merge the profile associated with the specified Parse identity with the current profile. Service Name - Identity Service Operation - Merge- Parameters:
parseId- The parse id of the playerauthenticationToken- The validated token from Parse (that will be further validated when sent to the bC service)callback- The callback method
-
detachParseIdentity
Detach the Parse identity from the current profile. Service Name - Identity Service Operation - Detach- Parameters:
parseId- The parse id of the playercontinueAnon- Proceed even if the profile will revert to anonymous?callback- The method to be invoked when the server response is received Watch for DOWNGRADING_TO_ANONYMOUS_ERROR - occurs if you set continueAnon to false, and disconnecting this identity would result in the profile being anonymous (which means that the profile wouldn't be retrievable if the user loses their device)
-
switchToChildProfile
public void switchToChildProfile(String childProfileId, String childAppId, boolean forceCreate, IServerCallback callback)Switch to a Child Profile Service Name - Identity Service Operation - SWITCH_TO_CHILD_PROFILE- Parameters:
childProfileId- The profileId of the child profile to switch to If null and forceCreate is true a new profile will be createdchildAppId- The appId of the child game to switch toforceCreate- Should a new profile be created if it does not exist?callback- The method to be invoked when the server response is received
-
switchToSingletonChildProfile
public void switchToSingletonChildProfile(String childAppId, boolean forceCreate, IServerCallback callback)Switches to a child profile of an app when only one profile exists If multiple profiles exist this returns an error Service Name - Identity Service Operation - SWITCH_TO_CHILD_PROFILE- Parameters:
childAppId- The id of the child app to switch toforceCreate- Should a new profile be created if it does not exist?callback- The method to be invoked when the server response is received
-
attachNonLoginUniversalId
Attaches a univeral id to the current profile with no login capability. Service Name - Identity Service Operation - AttachNonLoginUniversalId- Parameters:
externalId- User idcallback- The method to be invoked when the server response is received
-
updateUniversalIdLogin
Updates univeral id of the current profile. Service Name - Identity Service Operation - UpdateUniversalIdLogin- Parameters:
externalId- User idcallback- The method to be invoked when the server response is received
-
switchToParentProfile
Switch to a Parent Profile Service Name - Identity Service Operation - SWITCH_TO_PARENT_PROFILE- Parameters:
parentLevelName- The level of the parent to switch to If null and forceCreate is true a new profile will be createdcallback- The method to be invoked when the server response is received
-
getChildProfiles
Returns a list of all child profiles in child Apps Service Name - Identity Service Operation - GET_CHILD_PROFILES- Parameters:
includeSummaryData- Whether to return the summary friend data along with this callcallback- The method to be invoked when the server response is received
-
getIdentities
Retrieve list of identities Service Name - Identity Service Operation - GET_IDENTITIES- Parameters:
callback- The method to be invoked when the server response is received
-
getExpiredIdentities
Retrieve list of expired identities Service Name - Identity Service Operation - GET_EXPIRED_IDENTITIES- Parameters:
callback- The method to be invoked when the server response is received
-
refreshIdentity
public void refreshIdentity(String externalId, String authenticationToken, AuthenticationType authenticationType, IServerCallback callback)Refreshes an identity for this player Service Name - identity Service Operation - REFRESH_IDENTITY- Parameters:
externalId- User IDauthenticationToken- Password or client side tokenauthenticationType- Type of authenticationcallback- The method to be invoked when the server response is received
-
changeEmailIdentity
public void changeEmailIdentity(String oldEmailAddress, String password, String newEmailAddress, boolean updateContactEmail, IServerCallback callback)Allows email identity email address to be changed Service Name - identity Service Operation - CHANGE_EMAIL_IDENTITY- Parameters:
oldEmailAddress- Old email addresspassword- Password for identitynewEmailAddress- New email addressupdateContactEmail- Whether to update contact email in profilecallback- The method to be invoked when the server response is received
-
attachParentWithIdentity
public void attachParentWithIdentity(String externalId, String authenticationToken, AuthenticationType authenticationType, String externalAuthName, boolean forceCreate, IServerCallback callback)Attach a new identity to a parent app Service Name - identity Service Operation - ATTACH_PARENT_WITH_IDENTITY- Parameters:
externalId- The users id for the new credentialsauthenticationToken- The password/tokenauthenticationType- Type of identityexternalAuthName- Optional - if attaching an external identityforceCreate- Should a new profile be created if it does not exist?callback- The method to be invoked when the server response is received
-
detachParent
Detaches parent from this player's profile Service Name - identity Service Operation - DETACH_PARENT- Parameters:
callback- The method to be invoked when the server response is received
-
attachPeerProfile
public void attachPeerProfile(String peer, String externalId, String authenticationToken, AuthenticationType authenticationType, String externalAuthName, boolean forceCreate, IServerCallback callback)Attaches a peer identity to this player's profile Service Name - identity Service Operation - ATTACH_PEER_PROFILE- Parameters:
peer- Name of the peer to connect toexternalId- The users id for the new credentialsauthenticationToken- The password/tokenauthenticationType- Type of identityexternalAuthName- Optional - if attaching an external identityforceCreate- Should a new profile be created if it does not exist?callback- The method to be invoked when the server response is received
-
detachPeer
Detaches a peer identity from this player's profile Service Name - identity Service Operation - DETACH_PEER- Parameters:
peer- Name of the peer to connect tocallback- The method to be invoked when the server response is received
-
attachBlockchainIdentity
public void attachBlockchainIdentity(String blockchainConfig, String publicKey, IServerCallback callback)Attaches the given block chain public key identity to the current profile. Service Name - identity Service Operation - ATTACH_BLOCKCHAIN_IDENTITY- Parameters:
blockchainConfig- Identifies the block chain.publicKey- Block chain public key.callback- The method to be invoked when the server response is received
-
detachBlockchainIdentity
Detaches the blockchain identity to the current profile. Service Name - identity Service Operation - DETACH_BLOCKCHAIN_IDENTITY- Parameters:
blockchainConfig- Identifies the block chain.callback- The method to be invoked when the server response is received
-
getPeerProfiles
Returns a list of peer profiles attached to this user Service Name - identity Service Operation - GET_PEER_PROFILES- Parameters:
callback- The method to be invoked when the server response is received
-