Skip to main content
Version: 5.7.0

AttachUltraIdentity

Attach the user's Ultra credentials to the current profile.

ServiceOperation
identityATTACH

Method Parameters

ParameterDescription
ultraUsernameIt's what the user uses to log into the Ultra endpoint initially
ultraIdTokenThe "id_token" taken from Ultra's JWT.

Usage

http://localhost:3000
string ultraUsername = "ultraUsername";
string ultraIdToken = "ultraIdToken";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.IdentityService.AttachUltraIdentity(
ultraUsername, ultraIdToken, successCallback, failureCallback);
JSON Response
{
"status" : 200,
"data" : null
}
Common Error Code

Status Codes

CodeNameDescription
40211DUPLICATE_IDENTITY_TYPEReturned when trying to attach an identity type that already exists for that profile. For instance you can have only one Email identity for a profile.
40212MERGE_PROFILESReturned when trying to attach an identity type that would result in two profiles being merged into one (for instance an anonymous account and a Email account).