JSecurity Plugin

Add support for WildcardPermission

Details

  • Type: New Feature New Feature
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 0.4
  • Component/s: None
  • Labels:
    None
  • Patch Submitted:
    Yes

Description

The adding of support for WildcardPermission is half done.
I'm attaching a patch with the rest of the implementation. This patch includes:
-> A modification at JsecDbRealm artifact template so that it knows which JsecUserPermissionRel properties should be passed in to the permission constructor.
-> A modification at JsecDbRealm artifact template so that the SimpleAccount is created with a JsecUser instead of the username, this allows better use of <jsec:principal /> taglib.
-> A modification at JsecurityGrailsPlugin.accessControlMethod(). When no closure is received the access control by convention now uses a wildcard permission this way:
new WildcardPermission("${filter.controllerName}:${filter.actionName ?: 'index'}")
And this permission is what is checked.
-> A modification at JsecurityFilters to allow the mixing of Permission instances and String permissions at the accessControl blocks on controllers.

Activity

Hide
Peter Ledbrook added a comment -

The sub-issues have been completed.

Show
Peter Ledbrook added a comment - The sub-issues have been completed.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: