Trouble with Microsoft Authentication Popup not closing when using with Oidc #21585
-
|
Platform: wasm When using Oidc as specified in the documentation and using Microsoft authentication as the provider, we are getting the below error after login success. This results in the popup not closing and the redirect url opening up in the popup window. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
@HariniGamageCS Are you targeting net9.0? There is currently an issue with net9 that is causing this: unoplatform/uno.extensions#2692 The fix is in net10.0. If you were to target net10.0 instead does it work? |
Beta Was this translation helpful? Give feedback.
-
|
Tried with .NET 10 and I ended up with the error : My issue seems to be the same as this I also noticed that we don't have samples for authentication for v6 and all the samples I could find were still in v5. Which makes it difficult to get some reference too. :-/ |
Beta Was this translation helpful? Give feedback.
-
|
@HariniGamageCS Yes this is indeed the same issue. As a quick workaround, if you set We will be updating our samples for Auth to use the latest Uno.SDK and Uno.Extensions, I will keep you updated when those are published. In the meantime, the TestHarness application inside of the Uno.Extensions repo is what is currently being used to test Auth. You can find the relevant OIDC sample code inside the TestHarness app here: https://github.com/unoplatform/uno.extensions/tree/main/testing/TestHarness/TestHarness/Ext/Authentication/Oidc |
Beta Was this translation helpful? Give feedback.
-
|
@kazo0 That workaround seemed to have done the trick. Thanks! |
Beta Was this translation helpful? Give feedback.
@HariniGamageCS Are you targeting net9.0? There is currently an issue with net9 that is causing this: unoplatform/uno.extensions#2692
The fix is in net10.0. If you were to target net10.0 instead does it work?