Azure Container Apps, Easy Auth and .NET authentication
Easy Auth is a great way to authenticate your users. However, when used in the context of Azure Container Apps, .NET applications do not, by default, recognise that Easy Auth is in place. You might be authenticated but .NET will still act as if you aren't. builder.Services.AddAuthentication()
and app.UseAuthentication()
doesn't change that. This post explains the issue and solves it through the implementation of an AuthenticationHandler
.