Closed pawl1234 closed 1 year ago
Hello @pawl1234
I think you are facing the same issue as mentioned in #35, right?
The problem with showing an error message when email has not been validated yet, is that it would not allow for executing alternative authenticators. For example, Keycloak would not be able to fallback to password authentication.
Can you show me what your login flow looks like and elaborate a little more how you would like it to behave, please?
I am currently trying to collect as many use cases as I can, before adding additional features.
Thanks and regards Sven-Torben
Hi @sventorben
Yes, thats the same thing and that "Trust Email" helps me to permanently solve the issue. Thanks.
I opened the ticket because the error message on the console was not very helpful to me. While debugging I looked at the code to understand whats happening. From this line of code I was not directly thinking of an issue with "Trust Email" because there is this part which should print the right error message https://github.com/sventorben/keycloak-home-idp-discovery/blob/9b743b6e815a7fd8c6bc8d7c5ab94009af2f4094/src/main/java/de/sventorben/keycloak/authentication/hidpd/DomainExtractor.java#L29 (at least I tought so)
What I want to achieve is very basic I think. We want to use Keycloak as a central Broker and each of our Tenants for the service we will provide, will have its own Keycloak Instance which then acts as IdP. So we will have 1 Broker and 20 IdPs and need this plugin to allow automatic selection of the right IdP for the User.
The authentication flow is currently in PoC state and looks like this
@pawl1234 I assume that this works for you now, right? I will check how to improve the error message in that case.
Is there an existing feature request for this?
Is your feature related to a problem? Please describe.
I had the issue that my authentication flow worked in the first run, but I was not able to login after logout. I received the console error. I guess I spent too much time for debugging as I'm new to keycloak, but the reason for this issue was that the email address was not validated.
Describe the solution you'd like
I think this code line is not run. Haven't checked how to solve it and wanted to ask first. If wanted I can offer to investigate further.
https://github.com/sventorben/keycloak-home-idp-discovery/blob/9b743b6e815a7fd8c6bc8d7c5ab94009af2f4094/src/main/java/de/sventorben/keycloak/authentication/hidpd/DomainExtractor.java#L29
Describe alternatives you've considered
No response
Anything else?
Thanks for your Keycloak Plugin! :-)