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
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...
Code Maze Weekly #46
This week we've had plenty of articles to go through, and we loved it. As always there are a variety of categories and topics to choose from, so make yourself comfy, prepare a favorite brew, and just click on your favorite topic to read. .NET and C# Adding health...
Refresh Token with Blazor WebAssembly and ASP.NET Core Web API
In this article, we are going to show you how to implement a refresh token with Blazor WebAssembly and ASP.NET Core Web API. We are going to change our solution from the previous articles, on both API and Blazor sides, to support refresh token actions. With...
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...
Implementing OAuth2 Refresh Token with Angular and IdentityServer4
In this article, we are going to learn how to implement the OAuth2 refresh token actions in our Angular application. This action will enable us to silently refresh the access token when it is close to expiry. Also, it will provide a better user experience because the...
Code Maze Weekly #45
The weekend is coming and it’s time to relax and read some good articles and watch some awesome videos. Let’s see what’s in store for us this week. .NET and C# ILogger and Null Object Pattern [christianfindlay.com] Christian Findlay walks us through a different...
Publishing an ASP.NET Core App to Azure App Service Using Visual Studio
Microsoft Azure provides many services for hosting web applications, and Azure App Service is a major type. It is an HTTP-based service that we can use to host web applications, REST APIs, and mobile apps. Additionally, It supports a wide range of programming...
Role-Based Access Control and Claims with Angular and IdentityServer4
As we did with the MVC client application in the fourth part of this series, we are going to show you how to use role-based access control with our Angular application to protect routes and restrict access to unauthorized users. As we already know, from the mentioned...
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...
Code Maze Weekly #44
Every week we're surprised by the quality and variety of different articles and topics in .NET. This just goes to show how versatile .NET has become and just gives us more ideas on how to create even more side projects that will never get finished. Just kidding, all...
Creating Real-Time Charts with Blazor WebAssembly and SignalR
In this article, we are going to learn how to use Blazor WebAssembly and SignalR with ASP.NET Core Web API application to create real-time charts. Since we already have an article on a similar topic - How to Use Signalr with .NET Core and Angular - we won't dive deep...
Angular Authentication Actions with IdentityServer4
In the previous article, we have learned how to integrate an Angular application with IdentityServer4 and how to allow communication between these two projects. The configuration is prepared on both sides and as soon as we click the Login button, we get directed to...
Angular OAuth2 OIDC Configuration with IdentityServer4
In this article, we are going to continue our IdentityServer4 series by learning how to implement Angular OAuth2 OIDC security with IdentityServer4 using the Authorization Code flow. This article is heavily dependent on the previous articles from the series, so if you...
Code Maze Weekly #43
This week we've seen many interesting articles again, but we also had some great news too: .NET 5 Release Candidate one is out and available for testing! While we're waiting for the full .NET 5 to be finalized, let's take it slow and read some interesting articles by...
CQRS and MediatR in ASP.NET Core
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
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...
Code Maze Weekly #42
Another fantastic week in .NET, there are plenty of phenomenal articles to choose from and read something new and exciting. Kubernetes, versioning, APIs, databases, XAML, Xamarin, and a lot of life lessons all packed in a single news feed. So sit down (lie down), pick...
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
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...