How to do OAuth2 Authorization in ASP.NET Core for Swagger UI using Swashbuckle
This post is about documenting OAuth 2 protected ASP.NET Core Web API using Swashbuckle. Last post - Securing Your Web API Using Azure Active Directory I wrote about securing web api with Azure Active Directory. In ASP.NET Core Web API, Open API will be enabled by default. To enable OAuth2...
Securing Your Web API Using Azure Active Directory
This post is about securing your asp.net core web api applications using Azure Active Directory. First let’s create an Azure Active Directory application which helps you to protect the application. Open Azure Portal, Select Azure Active Directory, and select App registrations from the blade. Then click on the + New...
OpenAPI and Versioning for ASP.NET Core Web API
This post is about how to enable and use Open API for ASP.NET Core Web API with versioning enabled. I have created a Web API project in ASP.NET Core 5.0, so Open API is enabled by default. Next I am adding the Microsoft.AspNetCore.Mvc.Versioning package to enable versioning support. And I...
How to add Open API support for Azure Functions
This post is about documenting Azure Functions using Open API. Similar to ASP.NET Core, Open API support for Azure Functions is also simple and straight forward. I am using the QR Generator Azure Function and I am enabling Open API support for that. To enable Open API support first you...
How to create a QR Code generator with Azure Functions
This post is about creating a QR Code generator using Azure Functions. A QR code (abbreviated from Quick Response code) is a type of matrix barcode (or two-dimensional barcode) first designed in 1994 for the automotive industry in Japan. QR codes often contain data for a locator, identifier, or tracker...
What is new in ASP.NET Core 5.0 Web API
This post is about Web API application in ASP.NET Core 5.0 - What are the new features, how to create web api using dotnet CLI and Visual Studio. Finally deploying ASP.NET Core 5.0 Web API to Azure App service You can download and install ASP.NET Core 5.0 Web API from...
409 Conflict: Could not write to local resource web.config due to error Access to the path is denied.
This post is about how to fix the issue with 409 Conflict: Could not write to local resource ‘D:\home\site\wwwroot\web.config’ due to error ‘Access to the path is denied.’ when working with Azure App Service. Recently while working on an ASP.NET Core Web API project - which is deployed using Azure...
How to add a Startup class to Azure Functions
This blog post is about adding a Startup class to Azure Functions. So why we need a startup class for Azure function? For example if you’re building an Azure Function which talks to SQL Server Database or calling an external API, instead of creating the instance of Database Connection or...