Skip to content

Commit

Permalink
added security provider info in README file
Browse files Browse the repository at this point in the history
  • Loading branch information
fterrier committed Oct 10, 2012
1 parent 30a685d commit 3d0d391
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -206,6 +206,17 @@ Another action allows one to delete all ``COMPLETED`` tasks from the database.
def purge = {
// Purges all COMPLETED tasks
}

Security Provider
---

The Tasks plugin uses the [Platform Core] to store the user identity as the ``principal`` property on the Task created using the ``TaskController`` if a Security API implementation is provided.

An example of how to implement the Platform Core [SecurityBridge] interface for the [Shiro] plugin is provided in the plugin test file [ShiroSecurityBridge] for you to check out.
[Shiro]: http://grails.org/plugin/shiro
[Platform Core]: http://grails.org/plugin/platform-core
[SecurityBridge]: http://grailsrocks.github.com/grails-platform-core/gapi/org/grails/plugin/platform/security/SecurityBridge.html
[ShiroSecurityBridge]: https://github.com/fterrier/grails-rabbitmq-tasks/blob/master/test/projects/test-task-project/grails-app/services/org/chai/task/ShiroSecurityBridge.groovy

License
---
Expand Down

0 comments on commit 3d0d391

Please sign in to comment.