-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Initiating the wrong provider if multiple identity providers #7658
Comments
Thanks, I am not familiar with using identity providers, so I'll have to ask around for you, will get back to you! |
@lillheaton I'm afraid I haven't yet been able to find someone who's more familiar with this. It would be great if you could have a look in the source code to see what might be the culprit here? |
Hi @lillheaton, We're writing to let you know that we've added the For more information about issues and states, have a look at this blog post Thanks muchly, from your friendly PR team bot :-) |
I'm embarrassed to admit that I did not see that our vanilla solution had already included a fatal flaw. We were setting the global serializer settings for newtonsoft in our solution - for example camelcase serializeing. This does not run well with Umbraco frontend... Closeing the issue |
No worries, I always forget about those json settings as well.. Glad it's fixed for you now! |
I might have been a bit too quick to jump the gun here. Removing the default Newtonsoft serializes did in fact fix some issues regards to this. However the original issue of initiating the wrong IDP remains. And from what I could find it should be a easy fix.
It loops out HTML Forms with the same name and then calling document.forms.[name].submit(). So if there are multiple IDP's it will initiate the first in the list. I can see if I can take a crack at it when I got time. But if anyone who is already familiar with the Umbraco angular build, please go ahead and give it a go :) |
Fixed in #7845 |
When logged in into Umbraco backoffice and trying to link your account with IDP provider. It default initiates/challenge the to one that was last added.
Umbraco version
I am seeing this issue on Umbraco version: 8.5.3
Reproduction
Install
Configure/Add two different OpenID connections.
Bug summary
Once logged in and trying to "link" (click) one of these, it will always initiate the lastly configured IDP.
(Should be noted that on the login page, the two options are triggered correctly and initiates the one you clicked on)
Specifics
Chrome: Version 79.0.3945.130 - (Have not verified in other browsers)
Steps to reproduce
Expected result
The text was updated successfully, but these errors were encountered: