Skip to main content

Posts

Showing posts with the label grails jsecurity

Grails - Jsecurity(Shiro) plugin usage

Jsecurity plugin for grails simplies some of the tasks related to application security. Ref: http://grails.org/JSecurity+Plugin If installed correctly, it installs few domain classes and an AuthController in your application. This topic will be helpful if you have successfully installed the jsecurity plugin and trying to explore more about the usage. The following domain classes are added. 1. JsecUser 2. JsecRole 3. JsecPermission etc There is one controller "AuthController" added to your list of controllers. If grails is installed on your local m/c and if your server is running on port 8080, you can invoke this controller using http://localhost:8080/myApp/auth We do not have to call this explicitly. Whenever there is request for a URL that is protected by JSecurity as configured in the "SecurityFilters", the controller is automatically invovoked. (Refer documentation plug-in )