Replies: 1 comment
-
Fixed the issue by adding missing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having trouble implementing Azure AD B2C in my Blazor WASM Standalone app (targeting .NET 9) if I also use Blazor Bootstrap in the project.
I start with a brand new Blazor WASM project following this document here.
Issuing the
dotnet new blazorwasm -au IndividualB2C --aad-b2c-instance "{AAD B2C INSTANCE}" --client-id "{CLIENT ID}" --domain "{TENANT DOMAIN}" -o {PROJECT NAME} -ssp "{SIGN UP OR SIGN IN POLICY}"
command creates a fresh new Blazor WASM Standalone project.At this point, everything works perfectly fine, including user authentication.
I then add
BlazorBootstrap
to the project following this document here.I then update my
MainLayout
to the following:This is pretty much what's in the starter template. The only very minor changes I made are changing the text from "Home" to "Dashboard" along with its icon. That's it!
I also do NOT change any of the files that come with Azure AD B2C setup e.g.
RedirectLogin.razor
,Authentication.razor
, etc.At this point, trying to login stops working. When I click the "Log In", I see that the URL in the browser change to
authentication/login
as it should but nothing happens at all.Normally, a login popup should open which it does prior to adding
BlazorBootstrap
to my project. Once I add it and changeMainLayout.razor
to the code above, clicking "Log In" does not work anymore.Any idea why this may be happening or any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions