0

I have application where I want to grant or prohibited the roles to access the Controller.

Admin can change the the privilege of roles in roles management.

below is pic of role management where admin can change the privilege

How to apply Authorization on Controllers based on these dynamically changing privileges.

1 Answer 1

2

I think this is exactly what you need. You can create custom policies, in your case a policy per controller where you get the roles from the database in your custom policy.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.