java - Store Permissions for Apache Shiro -
i'm starting framework apache shiro, felt great , flexible. within application want control permissions parts of web jsp tags "shiro: haspermission".
shiro understand things can tell module4:action1, more complex scenarios module1-> module1.1-> action3 not think of structure store in database.
depending on model of our application suggestion store permissions on database, tables use?.
thanks in advance
shiro's default wildcardpermission syntax can handle arbitrary numbers of :
delimited tokens. on easy defining permissions follows:
module1:module1.1:action3
etc.
this means need association table, e.g. account_permissions
has account_id
, permission
string.
Comments
Post a Comment