-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] OIDC Register/Login Page Opens Twice #2441
Comments
Does it seem like the second register url is opened by the Client in the cli/UI or by a redirect from "Signed in via your OIDC provider" page? I am trying to figure out how I can replicate this in a test. |
Is this happening in both GUI and CLI clients? |
@kradalby good question. Until now, I only tested it using the GUI. Upon first registration and then manually expiring the node through the API and getting the popup: Using the CLI I can confirm that this command brought the same behavior, and it does in fact show both URLs in the terminal:
|
In fact, I can even confirm that the second URL and the "Success." message gets printed even before the second URL has even loaded in my browser. I can freely close the second URL and it will still successfully log me in and print Success. For what it's worth, I'm using Micrsoft 365/Entra as my IdP. |
Same behavior for me with Entra IdP |
I wondered if this was happening in the tests and they passed because we just took the first URL and ignored the second, so I hardened that over in #2445, but it doesnt seem like it is the case. I am unable to reproduce it locally with our test infra, I wonder if it applies to other IdPs or if it is a Entra thing. |
I've seen this with Keycloak, too. At first, there is only one URL visible. As soon as the login with Keycloak is successful, the second link is printed. |
I can confirm that this is fixed! Thank you @kradalby :D |
Is this a support request?
Is there an existing issue for this?
Current Behavior
I noticed that, since upgrading to version 0.25, when I authenticate to my OIDC provider, it will open the login page with the
/register/...
URL twice. The first time, it redirects me to my OIDC provider as expected, and then successfully authenticating results in a page which shows:And then immediately afterwards, a new
/register/...
URL opens again (different identifier than the previous one) which redirects me to my OIDC provider for a second time. Another successfully authentication is required, which then shows the message:Only the first page is required. If I simply close the second page, it will work just fine. The second page seems to be fully redundant.
Expected Behavior
It's expected that only one register URL should be opened during the first authentication, and then one URL should open for re-authentication. Instead, I'm getting both "authenticated" and "re-authenticated" messages for both the first and subsequent authentications.
I opened this bug report because it is:
Steps To Reproduce
Environment
Runtime environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: