sitecore - How to use more than one type of identifier for contact identification? -


our website using doccheck, external authentication provider, authenticate , identify contacts. use doccheck id, comes request parameter "uniquekey", contact identifier, contact, when logging in on device, can re-identified. these users authenticated in sitecore via virtual user.

tracker.current.currentpage.session.identify(page.request.querystring["uniquekey"]); 

in addition that, we're planning own user management registration, login etc. users logged in via email address , password. email address should used identifier identify contacts loggin in these credentials.

the users should able use both doccheck , our own login different parts of our website, have doccheck contacts , our own users.

is possible combine these 2 identifiers identify 1 contact?

thank , kind regards

torsten

at moment can use single value identify user within xdb. potentially going change in future can use one.

xdb mongo database how persisting additional collection contains relationship between identifiers. example be:

customcontact - _id: xdb identifier - alternativeidentifiers: [doccheckid, formsauthid, etc] - if indexed lookup quick 

then when come identify user lookup in custom collection identifier, find actual xdb id , identify that.

to find item in array @ elemmatch or in: https://docs.mongodb.org/manual/reference/operator/projection/elemmatch/ , examples on https://stackoverflow.com/a/18149149/1065332


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -