After seeing how to protect minimal APIs with JWT tokens and Asp.Net Core Identity, in this article, I want to share a next step, which I found myself facing for personal needs, that is how to make the management of JWT token claims dynamic in order to be able to manage roles, claims.
In order to get a working example that exploits this implementation, I created this project that works on SQL server databases and allows this dynamic claims management.
The implementation explained above is available as a Nuget package, available at this link, which in the coming weeks will be enriched with further features and documentation as indicated in the TODO present in the README of the aforementioned package.
Comments and/or suggestions are always welcome and don't forget that if you find this project useful, put a ⭐ on GitHub to show your support and help others discover it!
Top comments (0)