Test Authorization in ASP.NET Core Web APIs With the user-jwts Tool

How to use the new user-jwts tool to test a protected ASP.NET Core Web API without involving an authorization server.
Read more…

Brought to you by @andrea.chiarelli

1 Like

What’s up Devs! How did you like this post? Please share any comments or feedback with us on this thread

Great article! I followed few of the blog posts by Andrea and implemented them in my demo project with documentation. Check it out if you’d like: blazor-api-auth0

1 Like

Thank you for putting together this summary! :pray:

Is there a way to add multiple permissions claims to the same token?

Hi @smfields,
Yes, you can do this by adding the --claim option for each claim you want to add. For example:

dotnet user-jwts create --claim permissions=create:term --claim company=acme