Demystifying authentication in ASP.NET Core - Tore Nestenius - NDC Copenhagen 2025

Demystifying authentication in ASP.NET Core - Tore Nestenius - NDC Copenhagen 2025

🎙 Tore Nestenius 👥 227K 📅 November 19, 2025 ⏱ 49 min 👁 5K 📄 tutorial 🧭 2026-08-13
Available in: English (current) Français

Keywords

authenticationASP.NET Coreclaimsmiddlewarecookie

Summary

In this talk, Tore Nestenius explains the fundamentals of authentication in ASP.NET Core, focusing on the underlying mechanisms. He starts by introducing the ClaimsPrincipal object, which represents the authenticated user, and explains its structure: a collection of ClaimsIdentity objects, each containing claims (key-value pairs) and an authentication type. He then describes the request pipeline, where an authentication middleware is responsible for creating the ClaimsPrincipal from incoming requests. The talk covers the five core operations of authentication handlers: authenticate, sign in, sign out, forbid, and challenge, and how they are triggered via extension methods or results. He demonstrates adding cookie authentication, configuring schemes to select the appropriate handler, and the process of signing in, which involves creating a ClaimsPrincipal, wrapping it in an AuthenticationTicket, encrypting it, and setting a cookie. He also shows how to inspect the cookie’s contents by replacing the default data protection with a custom protector. The talk concludes with a discussion on sign out, emphasizing the importance of understanding the cookie’s role in maintaining user identity.

169 words

Critical Evaluation

Value of the Information & Strength of the Argument

The talk provides valuable insights into the internals of ASP.NET Core authentication, which is often considered complex. The speaker’s argumentation is solid, as he builds the explanation step by step, from basic concepts to practical demonstrations. He effectively uses analogies and visual aids to clarify abstract concepts like ClaimsPrincipal and AuthenticationTicket. The live coding and debugging sessions reinforce the explanations, making the content highly actionable for developers. The speaker also addresses common pitfalls, such as the interaction between challenge and redirect, which adds practical value.

Scientific Rigor, Source Quality, Title Accuracy

The talk is scientifically rigorous in its technical accuracy, as the speaker demonstrates deep knowledge of the framework. He does not cite external sources, but the content is based on official ASP.NET Core documentation and his own experience. The title accurately reflects the content, and the talk is well-structured. The speaker mentions his blog and user group, which could serve as additional resources, but no specific sources are cited in the video. The description provides links to NDC conferences, which are not directly related to the technical content.

188 words

Title / Content Match

The title accurately reflects the content, which demystifies authentication in ASP.NET Core through a step-by-step explanation and live demonstrations.

Quality & Reliability

8/10

The talk is a technical tutorial by an experienced instructor and consultant, providing a clear and accurate explanation of ASP.NET Core authentication internals. The content is well-structured and based on practical demonstrations, with no apparent factual errors. However, it is not a peer-reviewed source and relies on the speaker's expertise.

Key Moments

Cited Sources

  • NDC Conferences — Conference organizer, mentioned in the video description.
  • NDC Copenhagen — Specific conference event, mentioned in the video description.

Concurring Sources

Contribution & Novelties

The talk provides a clear, practical demystification of ASP.NET Core authentication, which is often perceived as complex. It breaks down the process into understandable components and demonstrates them with live examples. The speaker’s approach of showing the internal cookie contents is particularly insightful for understanding how authentication state is maintained.

Pour aller plus loin :

100 words

Radar Profile

The radar profile shows high scores in information quantity, quality, and reliability, with a slightly lower technical level, indicating a well-balanced and accessible technical talk.

Reliability 8/10

💬 No comments were provided for analysis.