Adventures with Blazor: Blazor, .NET MAUI and Razor Class Libraries

Blazor is a Single Page Application development framework. The name Blazor is a combination/mutation of the words Browser and Razor (the .NET HTML view generating engine). Read more at What is Blazor? – Blazor University (blazor-university.com) and ASP.NET Core Blazor | Microsoft Docs. Get started at What is Blazor [1 of 11] | Microsoft Docs….

Adventures with APIM: Blazor WebAssembly CORS Issues

For the past couple of hours days I have been battling an issue 🤔 where my CORS policy in APIM did not seem to be working for my Blazor WebAssembly application. I thought I had my APIM policy correct, allowed-origins and allowed-methods looked good. Still was receiving the CORS issue?! 😤 Thought I had this…

Adventures with Blazor: Custom Markdown Component

I created a simple Blazor Markdown component, you can download it at NuGet Gallery | PhatBrainSoftware.MarkdownEdit 1.0.1. Below is a screenshot of the component in action. The code is at phatbrainsoftware/MarkdownEdit: Blazor markdown editor component. (github.com), feel free to fork and make some changes!

Adventures in Apis: Grouping Controllers in Swagger

I like a one to one mapping between my controllers and actions, e.g. I have a controller to add an entity, delete an entity, and so on. I wired up Swagger support for my .NET Core API per Adding Swagger to ASP.NET Core 3.1 Web API (coderjony.com). When I view the Swagger documentation in the…

Adventures with Postman: Dynamic Variables

Dynamic variables allow you to randomly generate values for your Postman requests, e.g. First Name and Company Name. Postman dynamic variables include: Common Text, Numbers and Colors Internet and IP Addresses Names Profession Phone, Address and Location Images Finance Business Catchphrases This is a fun one! Databases Dates Domains, Emails and Usernames Files and Directories…

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 in Azure: Curbside Pickup Sample App

With all that is going on with COVID-19 and the impact that it is having on retailers, I took a couple of days and wrote a curb-side app that would allow customers to notify a retailer, or any vendor for that matter, that they had arrived to pick-up their order. Please note, this is an…

Adventures with Blazor: My First Component, a Busy Button

I recently challenged myself to take one of my side projects, on of my many multi-million dollar ideas, and develop it using some technologies that I am not fully accustomed to. For the back-end I am going to use Logic Apps, Azure Functions (JavaScript), Cosmos DB and for the front-end I am going to use…

Adventures with Azure AD B2C: Authenticating React

I have a React app that I am trying to wire up to Azure AD B2C. I am using James Randall’s library react-azure-adb2c. Wiring it up was a snap, the document was straight-forward on this. When I ran the application I received an UnsupportAuthorityValidation JavaScript error in the console. This is a tracked issue at…