Passing Javascript values to ASP.NET Core View components
In this post, I show how an ASP.NET Core MVC view can send a Javascript parameter value to an ASP.NET Core view component. Invoking a view component in the view using ‘@await Component.InvokeAsync’...
View ArticleSecuring a Vue.js app using OpenID Connect Code Flow with PKCE and...
This article shows how to setup a Vue.js SPA application to authenticate and authorize using OpenID Connect Code flow with PKCE. This is good solution when implementing SPA apps requesting data from...
View ArticleUsing Azure Key Vault from a non-Azure App
In this article, I show how Azure Key Vault can be used with a non Azure application. An example of this, is a console application used for data migrations, or data seeding during release pipelines....
View ArticleAuto Generated .NET API Clients using NSwag and Swashbuckle Swagger
This article shows how auto generated code for a C# HTTP API client could be created using Swagger and NSwag . The API was created using ASP.NET Core MVC. Code...
View ArticleASP.NET Core OAuth Device Flow Client with IdentityServer4
This article shows how to implement the OAuth 2.0 Device Flow for Browserless and Input Constrained Devices in an ASP.NET Core application. The tokens are then saved to a cookie for later usage....
View ArticleSecurity Experiments with gRPC and ASP.NET Core 3.0
This article shows how a gRPC service could implement OAuth2 security using IdentityServer4 as the token service. Code: https://github.com/damienbod/Secure_gRpc Posts in this series Security...
View ArticleRunning Razor Pages and a gRPC service in a single ASP.NET Core application
This article shows how ASP.NET Core Razor Pages can be run in the same application as a gRPC service. Code: https://github.com/damienbod/Secure_gRpc Posts in this series Security Experiments with gRPC...
View ArticleRunning Local Azure Functions in Visual Studio with HTTPS
This article shows how to setup a Visual Studio Azure Functions project to work with HTTPS for local development. HTTP is configured per default and not HTTPS. The command line arguments need to be set...
View ArticlegRPC Bi-directional streaming with Razor Pages and a Hosted Service gRPC client
This article shows how a Bi-directional streaming gRPC service could be implemented using an .NET Core Hosted Service as a gRPC client, and a Razor Page to send Bi-directional streaming messages to the...
View ArticleSecuring browser based Javascript, Typescript applications
This article should help you in choosing the right security for your browser based Javascript or Typescript applications. You should aim to secure the application as best as possible. The following...
View ArticleUsing Azure Service Bus Queues with ASP.NET Core Services
This article shows how to implement two ASP.NET Core API applications to communicate with each other using Azure Service Bus. The ASP.NET Core APIs are implemented with Swagger support and uses an...
View ArticleUsing Azure Service Bus Topics in ASP.NET Core
This article shows how to implement two ASP.NET Core API applications to communicate with each other using Azure Service Bus Topics. This post continues on from the last article, this time using topics...
View ArticleUsing Azure Service Bus Topics Subscription Filters in ASP.NET Core
This article shows how to implement Azure Service Bus filters for topic subscriptions used in an ASP.NET Core API application. The application uses the Microsoft.Azure.ServiceBus NuGet package for all...
View ArticleUsing Entity Framework Core to process Azure Service Messages in ASP.NET Core
This article shows how to use Entity Framework Core together with an Azure Service Bus receiver in ASP.NET Core. This message handler is a singleton and so requires that an Entity Framework Core...
View ArticleUsing an Azure Service Bus Topic Subscription in an Azure Function
This post shows how to consume Azure service bus topic subscriptions in an Azure function. Code: https://github.com/damienbod/AspNetCoreServiceBus Posts in this series: Using Azure Service Bus Queues...
View ArticleHandling Access Tokens for private APIs in ASP.NET Core
This article shows how to persist access tokens for a trusted ASP.NET Core application which needs to access secure APIs. These tokens which are persisted are not meant for public clients, but are used...
View ArticleUpdating Microsoft Account Logins in ASP.NET Core with OpenID Connect and...
This article shows how to implement an Azure Active Directory login for an ASP.NET Core application. The Microsoft identity platform (v2.0) is now Open ID Connect certified and the Microsoft Account...
View ArticleCertificate Authentication in ASP.NET Core 3.0
This article shows how Certificate Authentication can be implemented in ASP.NET Core 3.0. In this example, a shared self signed certificate is used to authenticate one application calling an API on a...
View ArticleUsing Chained Certificates for Certificate Authentication in ASP.NET Core 3.0
This article shows how to create self signed certificates and use these for chained certificate authentication in ASP.NET Core. By using chained certificates, each client application can use a unique...
View ArticleSystem Testing ASP.NET Core APIs using XUnit
This article shows how an ASP.NET Core API could be tested using system tests implemented using XUnit. The API is protected using JWT Bearer token authorization, and the API uses a secure token server...
View Article