Latest Posts On Code Maze

Blazor WebAssembly Role-Based Security with IdentityServer4

Blazor WebAssembly Role-Based Security with IdentityServer4

In this article, we are going to learn more about the Blazor WebAssembly Role-Based Security and how IdentityServer4 fits into the whole story. Also, we are going to include our API application in this process and protect our endpoints with the required role. [sc...

Continuous Deployment from GitHub to Azure App Service

Continuous Deployment from GitHub to Azure App Service

We learned about Azure App Service and how to deploy our ASP.NET Core application into it from Visual Studio in the Publishing an ASP.NET Core App to Azure App Service Using Visual Studio article. In this article, we are going to learn how to configure Continuous...

Using Access Token with Blazor WebAssembly HttpClient

Using Access Token with Blazor WebAssembly HttpClient

In this article, we are going to learn how to use generated Access Token with Blazor WebAssembly to gain access to the protected resources on the Web API's side. Until now, we have integrated the Blazor WebAssembly app with IdentityServer4 and enabled login and logout...

How to Secure Blazor WebAssembly with IdentityServer4

How to Secure Blazor WebAssembly with IdentityServer4

Blazor WebAssembly runs on the client and thus, it can't be trusted. This means that just like with any JavaScript application, the authorization part can be bypassed. So, this means that we have to implement our authorization actions outside of the Blazor WebAssembly...

How to Publish Angular with ASP.NET Core

How to Publish Angular with ASP.NET Core

In this article, we are going to cover how to develop and publish Angular with an ASP.NET Core backend. Single-Page Application (SPA) frameworks like Angular can be configured with ASP.NET Core to facilitate the development and publishing process. This is particularly...

Securing Requests from Angular to Web API With Access Tokens

Securing Requests from Angular to Web API With Access Tokens

Up until now, we have learned how to integrate the Angular application with IdentityServer4 and how to retrieve different tokens after successful login action. From these previous articles, we know that the id token is important for the client application because it...

ASP.NET Core Configuration – Azure Key Vault

ASP.NET Core Configuration – Azure Key Vault

In this article, we're going to talk about how to protect our sensitive configuration data in the production environment with Azure Key Vault. Previously we've talked about the Secret Manager and environment variables which we can use to protect our data while in...

Securing Sensitive Data Locally in ASP.NET Core

Securing Sensitive Data Locally in ASP.NET Core

We've come to the most important part of this series - securing sensitive data when working with the configuration in ASP.NET Core. As software developers, we are responsible for the security of the applications we create, and it should be on top of our priorities...

Creating Custom Configuration Provider in ASP.NET Core

Creating Custom Configuration Provider in ASP.NET Core

In this article, we are going to create a custom configuration provider that reads our configuration from the database. We've seen how the default configuration providers work, and now we're going to implement our own custom one. For the custom configuration provider,...

ASP.NET Core Configuration – Configuration Providers

ASP.NET Core Configuration – Configuration Providers

In this article, we're going to talk about different configuration providers in ASP.NET Core. We've got used to using JSON as a default format for our configuration and it's the most commonly used format for configuring ASP.NET Core applications. But there's much more...

ASP.NET Core Configuration – Options Validation

ASP.NET Core Configuration – Options Validation

In this article, we're going to learn the importance of options validation and a few ways to implement it in our ASP.NET Core applications. With advanced mechanisms like configuration reloading, we need to think about options validation carefully as we don't want to...

ASP.NET Core Configuration – Options Pattern

ASP.NET Core Configuration – Options Pattern

In this article, we're going to cover another way of reading configuration data in .NET Core - the options pattern. The options pattern helps us group related configuration settings, and it provides strongly typed access to them. We are going to learn how the options...

ASP.NET Core Configuration – Basic Concepts

ASP.NET Core Configuration – Basic Concepts

In this introductory article, we are going to learn how ASP.NET Core configuration works, the basic configuration concepts, and a few different ways we can use to configure our application. Even by default, the configuration mechanism in .NET is pretty powerful, but...