Adventures with Blazor: Login and Logout Events

Ever wanted to do something after a user logs in or logs out of your Blazor App? Surprisingly, it fairly simple to do. In VS Code I created a Blazor WebAssembly project that uses Azure ADB2C for authentication. Once scaffolded, I navigated to the Authenticate.razor page in the Pages folder. The RemoteAuthenticatorView component supports two…

Adventures with Blazor: Accessing Claims in a Razor Page

With Blazor Web Assembly officially released I decided to take one of my side projects and write the front end in Blazor. I was able to wire up Azure AD B2C for authentication. What I wanted to do next was to take a look at the Claims that were available, I knew how to do…