Blazor WASM Azure AD B2C Popup window #26131
-
I've gotten my blazor WASM application working with Azure AD B2C, but I really dislike the popup and would rather have it redirect to the page instead. Also, if you click the password reset link inside the popup or click cancel it takes you to the actual page anyway; so that is strange and seems to work. Is it possible with blazor wasm not to have a popup window? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Answer: To all those needing this same information. Upgrade to .NET 5.0-rc1 Upgrade 3.1 -> 5.0 Then do the following: That property is exposed in the latest .net 5 RC of the wrapper library (Microsoft.Authentication.WebAssembly.Msal) - you would set the property with options.ProviderOptions.LoginMode = "redirect" - try with this specific package version: https://www.nuget.org/packages/Microsoft.Authentication.WebAssembly.Msal/5.0.0-rc.1.20451.17
|
Beta Was this translation helpful? Give feedback.
-
Just found this btw: https://docs.microsoft.com/en-us/aspnet/core/blazor/security/webassembly/hosted-with-azure-active-directory-b2c?view=aspnetcore-5.0 |
Beta Was this translation helpful? Give feedback.
Answer: To all those needing this same information.
Upgrade to .NET 5.0-rc1
Upgrade 3.1 -> 5.0
https://docs.microsoft.com/en-us/aspnet/core/migration/31-to-50?view=aspnetcore-3.1&tabs=visual-studio#update-blazor-webassembly-projects
Then do the following:
That property is exposed in the latest .net 5 RC of the wrapper library (Microsoft.Authentication.WebAssembly.Msal) - you would set the property with options.ProviderOptions.LoginMode = "redirect" - try with this specific package version: https://www.nuget.org/packages/Microsoft.Authentication.WebAssembly.Msal/5.0.0-rc.1.20451.17