Sources

BW Bart Wullems (The Art of Simplicity)
Blog

2stories
Oct 21latest
ASP.NET Core
Keep the cookie small

Shrinking the ASP.NET Core auth cookie with ITicketStore

Cookie authentication in ASP.NET Core serializes the whole AuthenticationTicket into the cookie, so large claim sets can push it past WAF limits. Implementing ITicketStore keeps the ticket on the server and leaves only a session key in the cookie. The article compares an in-memory store with a distributed cache version and discusses the scaling and revocation trade-offs.

ADFS + OIDC
Extra claims from ADFS

Using the ADFS userinfo endpoint instead of allatclaims

This post shows how to keep the ADFS ID token small and fetch extra claims from the OpenID Connect userinfo endpoint instead of using allatclaims. It covers the urn:microsoft:userinfo claim rules and the ASP.NET Core OpenIdConnect setting that merges those claims. It also flags the audience error that appears when the wrong token is sent.

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message