activity/task based authorisation

560 Views Asked by At

Rhino security seems to offer a nice way to perform task/activity based authorization. This is some example code:

bool isAllowed = authorizationService.IsAllowed(userXYZ, "/Messages/Change");

It checks whether userXYZ can perform activity 'Change' on resource 'Messages'. This is all great but I do not like the way the resource and activity is hard coded. Do you reckon there is a way to overcome this? Thanks!

1

There are 1 best solutions below

4
On