[Feature Request] support for Azure Container Apps with Easy Auth #2274
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
feature request
Is your feature request related to a problem? Please describe.
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. What I mean by this, is that you might be authenticated but .NET will still act as if you aren't. builder.Services.AddAuthentication() and app.UseAuthentication() doesn't change that.
Whilst support for Easy Auth with Azure App Service was added in v1.2: https://github.com/AzureAD/microsoft-identity-web/wiki/1.2.0#integration-with-azure-app-services-authentication-of-web-apps-running-with-microsoftidentityweb - the same support does not exist for Azure Container Apps which works upon different environment variables and request headers.
I've implemented my own custom approach here: https://johnnyreilly.com/azure-container-apps-easy-auth-and-dotnet-authentication
It'd be awesome if this was just generally available to the world though.
Describe the solution you'd like
In the same way that support for Azure App Service is built into
Microsoft.Identity.Web
, it would be awesome if the same support was available for Azure Container Apps. So imagine being able to write:And have everything magically just work.
Describe alternatives you've considered
Building my own solution, which I have done - see above.
Additional context
See blog post.
The text was updated successfully, but these errors were encountered: