Maybe this is the reason?
Hello, I think I found the root cause of this problem.
I summarize my findings:
OpenIdConnect.nonce.OpenIdConnect cookie problem
This cookie is set from the application (let it be called βID Clientβ) as soon as the OpenID middleware starts an authentication session.
The cookie should be sent back from the browser to the "ID Client" as soon as authentication is complete. I assume that this cookie is necessary for double verification from the point of view of client ID (i.e., did I really start the OpenID Connect authorization flow?)
A lot of confusion in me was caused by the term "Nonce", used both in this cookie and in the OpenID Connect stream from the ID server.
The exception, in my case, was caused by a missing cookie (not a one-time server ID number), simply because the browser did not send it back to the "identifier client"
So the main root, in my case, was this: the OpenIdConnect.nonce.OpenIdConnect cookie was not sent back to the identifier client by the browser. In some cases (e.g. Chrome, Firefox and Edge) the cookie was sent correctly, while in others (IE11, Safari) it didnβt.
After much research, I found that the problem was the cookie restriction policy defined in the browser. In my case, the "client id" is embedded in the <iframe> . This leads to the fact that the "ID Client" will be considered as a "third-party client", since the user did not go to this URL directly in the main window. Since these are third-party cookies, cookies must be blocked for some browsers. Indeed, the same effect can be obtained in Chrome by setting "Block third-party cookies."
So, I have to conclude that:
a) If the iframe is mandatory (as in my case, because the "ID clients" are applications that should run inside the graphical content of our main platform application), I think the only solution is to catch the error and handle it using the page requesting the inclusion of third-party cookies.
b) If the iframe is optional, just open the "ID Client" in a new window.
Hope this helps someone because I'm crazy!
Marco
source share