Authorization for ASP.NET Web APIs

Learn how to secure an ASP.NET Web API by granting access only to authorized users through Auth0 authentication and authorization services.
Read more…

Brought to you by @andrea.chiarelli

What are you thoughts guys? Share it in the comments!

Is this article clear enough to help you implement Auth0 in your ASP.NET Web API?
Let me know

Hi,

Just tried out this Auth0 example code on ASP.NET, works a treat!

Thanks,
Tom

Hey @tom.randles, happy to hear this! :tada:
Stay tuned and you’ll learn how to use permissions in next weeks :wink:

Hi @andrea.chiarelli. Is there a tutorial for .Net framework 4.x (not Core)? All .net documentation I see only targets .Net Core.
Is it possible to add auth0 support for legacy .net applications? The nuget packages seem to target only core.

Hey @cossio.jorge, have you taken a look at the ASP.NET Web API (OWIN) Quickstart?
It should be the starting point for the .NET Framework

Great docs. Thank you!
Can you please create a new blog post on how to call a secured Minimal API from secured Blazor Web app in .NET 8? Also how would it work on cases when the secured Minimal API has multiple instances running (like in a micro services scenario)? Would love an example in this scenario. Thanks!

Hi @ashishk,
Welcome to the Auth0 Community! :wave:
Content for .NET 8 is in the pipeline. Stay tuned! :slightly_smiling_face:

Regarding the microservices scenario, the actual implementation depends on many factors: architecture, purpose, infrastructure, security requirements, etc. Maybe these docs can give you an idea of how you can organize them: