I am trying to perform Authetication and Authorization of my .Net core application through Azure Active Directory. So far, I am successfully able to do,
- Authentication with OIDC
- Authentication through Graph API
- Applying groups and roles policies
Above implementation satisfies my half of the expectation. Once Role is assigned, I want to have custom permission under each role and I am stuck with that setup. I understand that using custom claims, I can setup my application entity permission to users. i.e. category claims, which stores accessible categories for that particular user.
Questions:
- Am I on the right direction?
- If yes, I believe that we can not setup dynamically other user claims through Graph API. What is the other solution?
- If no, what are the alternatives?
Summary - I don't want to store any authentication or authorization information on my database. Hence, I want to leverage Azure AD for the same.