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 manage roles, claims, modules and licenses.
To obtain a working example that uses this implementation, I created this project (wrapper extender of ASP.NET Core Identity) that uses a SQL server database and allows this dynamic management.
The implementation explained above is available as a Nuget package, available at this link, while the code is available in this repository, which will be enriched with additional features and documentation in the coming weeks.
The project is constantly evolving. Contributions are welcome. Feel free to file issues and pull requests on the repository 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)