Author name: Tore Nestenius

Tore is an independent educator and consultant through his company TN-Datakonsult http://www.tn-data.se, where he specializes in training developers in .NET, Web Security, OpenID-Connect, architecture, and more. Tore regularly shares his knowledge about .NET on his blog https://nestenius.se, focusing on security and authentication.

Debugging OpenID Connect Claim Problems in ASP.NET Core

Debugging OpenID Connect Claim Problems in ASP.NET Core

Missing claims in the ClaimsPrincipal user object is a frequent problem when using OpenID Connect authentication in ASP.NET Core. In this blog post, we’ll explore common causes behind these claim issues and provide troubleshooting steps to help you identify and resolve them effectively. What is the purpose of the OpenIDConnect handler? The handler has two […]

Debugging OpenID Connect Claim Problems in ASP.NET Core Read More »

Troubleshooting JwtBearer authentication problems in ASP.NET Core

Troubleshooting JwtBearer authentication issues in ASP.NET Core

One of the most frequent questions I encounter on Stack Overflow is how to troubleshoot JwtBearer authentication issues in ASP.NET Core. In this post, I’ll share top tips and solutions to help you resolve common JwtBearer handler problems effectively. The JwtBearer handler We add the JwtBearer handler to the authentication middleware in our ASP.NET Core

Troubleshooting JwtBearer authentication issues in ASP.NET Core Read More »

IdentityServer - IdentityResource vs. ApiResource vs. ApiScope

IdentityServer – IdentityResource vs. ApiResource vs. ApiScope

Understanding the differences between IdentityResource, ApiResource, and ApiScope in Duende IdentityServer is a common question among developers, often seen on platforms like Stack Overflow. My answer to this question has gained significant traction as one of my most upvoted responses. In this blog post, I’ll dive deeper into these resource types, explaining what they are,

IdentityServer – IdentityResource vs. ApiResource vs. ApiScope Read More »

ASP.NET Core JwtBearer library: what’s new?

ASP.NET Core 6 – JwtBearer library: what’s new?

As a developer and trainer, it is hard to keep up with all the changes in all the libraries. In this blog post, I will summarize the recent key changes that I have found in the ASP.NET Core JwtBearer library versions 3.1.22, 5.0.13, and 6.0.1. The JwtBearer library is distributed in the Microsoft.AspNetCore.Authentication.JwtBearer NuGet package.

ASP.NET Core 6 – JwtBearer library: what’s new? Read More »