source: trunk/grails-app/services/Authorization.groovy @ 12

Last change on this file since 12 was 12, checked in by duh, 13 years ago

Updated the BaseController? to incorporate basic authentication (not yet implemented) to capture all method ( = controller and action ) calls. For now is authorizes everything, to be continued...

File size: 625 bytes
Line 
1/**
2 * Authentication and Authorization service
3 * @Author  Jeroen Wesbeek
4 * @Since   20091019
5 *
6 * Revision information:
7 * $Rev$
8 * $Author$
9 * $Date$
10 */
11public class Authorization {
12    /**
13     * class constructor
14     * @void
15     */
16    public def Authorization() {
17        // debug line for now
18        printf("instantiated %s\n",this.class.name);
19    }
20
21    /**
22     * check if a user is authenticated to use this class and / or method
23     * @return boolean
24     */
25    def isAuthorized(controller,action) {
26        printf("calling isAuthorized(%s,%s)\n",controller,action);
27
28        // everything is allowed for now...
29        return true;
30    }
31}
Note: See TracBrowser for help on using the repository browser.