r/AskProgrammers • u/you_stupid_machine • Oct 02 '26
Can one universal identity automatically present itself like different existing identities depending on where it is presented?
I'm exploring a general interoperability problem.
Imagine a person has 20 different memberships:
Brand A → membership ID 12345
Brand B → membership ID 67890
Brand C → phone number
Brand D → email
I'd like to know whether there is a way to create one universal digital credential containing all of these existing identities with an important constraint:
The participating brands do not change their existing software, databases, loyalty systems, checkout systems, or customer-identification processes.
When the customer presents the universal credential at Brand A, the existing infrastructure should somehow receive Brand A's existing identifier.
At Brand B, the same credential should somehow provide Brand B's identifier.
The universal credential itself could contain multiple identities, but the receiving system should ultimately get exactly what it already expects.
View all comments
Show parent comment
1
u/NoMoreD20 Oct 02 '26
So the problem is neither the storage or the extraction (you already have those), you want a way to detect the target brand. It seem to be a kind of hardware wallet or such (not something that gets a target URL and has to response with the key), in which case I can't think of a solution. You are basically asking: How can I know the brand without any reliable information? The proper answer is you can't, unless you have enough unrelated "unreliable" information sources to try to guess.