Web API in .Net 6.0 with Auth0 with Roles and Permissions
This week, I was tutoring a student client of mine. We have been working our way through using Auth0. It occurred to me that, all my clients have now migrated to .Net 6.0.
However, my demo project,
Random Stuff Generator
Welcome to the Random Stuff Generator. You know quotes. This project is a Content Management Solution (CMS). The…
is currently running off .Net 5.0. I am working on a upgrade, but the project is massive, and that will take a lot of time.
So, I needed to have a ready to use demo for my .Net 6.0 related tutoring. So, I decided to build it. As usual, you can find the code here.
CSharpForStudents/WebApiDotNet6/webapiauth0demo at main · Jay-study-nildana/CSharpForStudents
A quick and simple demo for web api with Auth0 plus scopes and roles. Replace these with your own values…
Here are the key steps, with some screenshots to boot.
Once that is done, you have to get the main stuff included in your code.
Look at the full code, here. I have included only the main things above.
That’s all there is to it.