Role based authentication clean architecture example ?
Loading
Role based authentication clean architecture example ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amira BedhiafiPosted Aug 3, 2025, 5:29 PM
Hello Sangeetha !
The clean architecture separates your application into layers:
Role-based authentication typically goes in the application layer for policy logic and Infrastructure for identity providers (like JWT or Identity Server).
You can find an example in Git that includes role-based auth using ASP.Net identity and JWThttps://github.com/jasontaylordev/CleanArchitecture
You can follow also this tuto :
https://jasonwatmore.com/post/2021/07/18/net-5-role-based-authorization-tutorial-with-example-api