Skip to main content
Version: 6.1.0

AttachAdvancedIdentity

Attach the user's credentials to the current profile.

ServiceOperation
identityATTACH

Method Parameters​

ParameterDescription
authenticationTypeUniversal, Universal, Facebook, etc
idsAuth IDs structure
extraJsonAdditional to piggyback along with the call, to be picked up by pre- or post- hooks. Leave empty string for no extraJson

Usage​

http://localhost:3000
AuthenticationType authenticationType = AuthenticationType.Universal;
AuthenticationIds ids;
ids.externalId = "authAdvancedUser";
ids.authenticationToken = "authAdvancedPass";
ids.authenticationSubType = "";
string extraJson = "{\"key\":\"value\"}";

_bc.IdentityService.AttachAdvancedIdentity(
authenticationType,
ids,
extraJson,
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).
550022INVALID_PASSWORD_CONTENTThe password doesn't meet the minimum password requirements.