Deadbolt - how do i define a role (Java)? -


deadbolt's documentation sparse, really.

let's have standard user. user object use has method - "getthing"

i want role applies "getthing" value of more 50.

how go doing this? possible, or misunderstandnig deadbolt?

roles represent static constraints, e.g. subject has role x , access resource requires subject have role y.

for requirements, need use dynamic constraint. arbitrary rule defined must satisfied allow access resource.

you can read different constraints in documentation, including dynamic constraints.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -