Blog

Blog posts on .NET, Azure, and more.

Block Azure B2C Users with Microsoft Graph and ASP.NET Core

April 04, 2022 by Anuraj

Azure AspNetCore

This post is about blocking Azure B2C users with Microsoft Graph and ASP.NET Core. We can use Azure B2C as an identity provider. We got a requirement like application administrators need an option to block the users from signing in to the application via Azure B2C. Here is the solution we found. Since we are storing the user’s object Id in the database along with some properties we are showing the list of users from the database. And we are calling the Graph API from our controller. To do this first we need to create an Azure B2C application. We need to note the ClientId and TenantId details.

Consuming a GraphQL API with Angular

March 10, 2022 by Anuraj

Azure AspNetCore Angular GraphQL

This post is about consuming a GraphQL API with an Angular application. For this post I am using a Azure Function with GraphQL - I already wrote a blog post - Create Azure Functions with GraphQL Support.

Working with Feature Flags in ASP.NET Core MVC application

March 08, 2022 by Anuraj

Azure AspNetCore DotNetCore DevOps

This post is about Adding feature flags to an ASP.NET Core app. In this blog post we will discuss about various extension points of Feature Management package. In the last post we implemented the feature management in controller code. But that might not be the scenario always - we might like to control the feature visibility in views or in middleware. We will be able to use IFeatureManager instance, but FeatureManagement package offers more extension points like Views, Filters and Middleware out of the box.

Adding feature flags to an ASP.NET Core app

March 06, 2022 by Anuraj

Azure AspNetCore DotNetCore DevOps

This post is about Adding feature flags to an ASP.NET Core app.Feature flags (also known as feature toggles or feature switches) are a software development technique that turns certain functionality on and off during runtime, without deploying new code. In this post we will discuss about flags using appsettings.json file. I am using an ASP.NET Core MVC project, you can do it for any .NET Core project like Razor Web Apps, or Web APIs.

Building a simple Tweet Bot using Azure Logic Apps

February 25, 2022 by Anuraj

Azure LogicApps LowCode

This post is about building a simple tweet bot using Azure Logic Apps. Azure Logic Apps is Low code / No code serverless service from Microsoft Azure. In this post I will be building a Tweet bot which look for #dotNETLovesMe hash tag and retweets them.

Copyright © 2024 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub