I have a KeyCloak server with a list of pre-created users. I have multiple identity providers configured. I am using custom login page.
I need users to have an ability to add multiple identity provider links to themselves with potentially different emails on the provider side.
Is there a way to generate links that would redirect users to the specific IDP, and after they authenticate there, to link that IDP to their KeyCloak user automatically? I can update the user records through API manually, but is there a way to know which KeyCloak user authenticated through an IDP if their emails don't match?