Hey guys, I'm new to Ory and I was wondering if so...
# talk-kratos
a
Hey guys, I'm new to Ory and I was wondering if something I want to do is possible. I'm planning to use Kratos on my gaming side-project, can you tell me if the following system is achievable: Users would be able to buy stuff on the store by simply using their in-game nickname (no password) if they don't have an account on the website and they would be able to link their in-game nickname to their account on the website, so in Ory concepts: Can I "link" two identities with each other? can I prevent them from logging in with their ign if it's already linked with an account using only Ory api/identity schemas or should I make a service to handle this case? Sorry if these are newbie questions, I couldn't figure it out just reading the docs šŸ˜…
m
Hello, no worries about the questions, its actually not a standard use case, I dont think this is documented. You can link other social sign-in connections to an accounts, but I don’t think you can link identities per se.
You can add any data to the identity though, so you can add something in your settings or other UI screens where people can link/add their ingame name. How will the ingame name be verified/authenticated?
can I prevent them from logging in with their ign if it’s already linked with an account using only Ory api/identity schemas or should I make a service to handle this case?
Hmm there is probably multiple ways to solve this. You could set the ign as identifier in an identity schema that is used for the ā€œign login/signup/linkā€ endpoint and then people wouldnt be able to login/signup with an ign that is already registered. Probably depends what the ā€œnormalā€ signup is and how the identity schema looks there.
So its definitely possible, but will require some coding to get your exact use case to work. Luckily Ory is really flexible, headless and gives you full control over the frontend.