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
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
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...
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...
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...
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...
MediatR and CQRS in ASP.NET Core: Complete Guide
MediatR is a small .NET library that routes a request object to exactly one handler class, which is what makes it the usual way to implement CQRS in ASP.NET Core: commands and queries become separate request types with separate handlers, and controllers stop knowing...
User Secrets vs Environment Variables in ASP.NET Core
ASP.NET Core gives us two ways to keep secrets out of source control on a development machine: user secrets, stored per project in a file outside the repository, and environment variables, stored per machine or per shell session. Both feed straight into...
Custom Configuration Provider in ASP.NET Core With EF Core
A configuration provider is the piece of ASP.NET Core that turns one source of settings (a JSON file, environment variables, a database) into flat key-value pairs the rest of the app reads through IConfiguration. A custom one is two small classes: an...
ASP.NET Core Configuration Providers
A configuration provider is one source of settings. JSON files, environment variables, command-line arguments, a key vault, a database table: each is a provider, and each contributes key-value pairs to the single dictionary the application reads through...
Options Validation in ASP.NET Core
Options validation turns a bad configuration value into a clear failure instead of a strange bug three layers down. ASP.NET Core offers three ways to write the rules and one way to decide when they run. The rules go on the options class as data annotations, in a...
Options Pattern in ASP.NET Core With IOptions
The options pattern binds a section of configuration to a class and hands that class to whatever needs it through dependency injection. Instead of asking IConfiguration for "Pages:HomePage:Color", a service asks for IOptions<TitleConfiguration> and reads .Color....
How to Use IConfiguration in ASP.NET Core
ASP.NET Core configuration is a single flat dictionary of string keys and string values, assembled at startup from several sources and read through one interface, IConfiguration. Nested JSON becomes flat keys joined by colons, so Logging:LogLevel:Default reaches the...
Dependency Injection in ASP.NET Core
In this article, we're going to talk about dependency injection, one of the most frequently used design patterns out there. There are many tutorials about dependency injection, but in this one, we're going to focus on understanding why the dependency injection is used...




















