-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathAuthenticationGrailsPlugin.groovy
35 lines (31 loc) · 1.27 KB
/
AuthenticationGrailsPlugin.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
class AuthenticationGrailsPlugin {
def version = '2.0.1'
def author = "Marc Palmer"
def authorEmail = "marc@anyware.co.uk"
def title = "Simple, extensible authentication services with signup support"
def description = '''
Simple authentication mechanisms with signup and authorisation hooks and DB abstraction, all handled with
events.
'''
def grailsVersion = "1.1 > *"
def loadAfter = ['logging']
def documentation = 'http://grails.org/plugin/authentication'
def doWithSpring = {
// TODO Implement runtime spring config (optional)
}
def doWithApplicationContext = { applicationContext ->
// TODO Implement post initialization spring config (optional)
}
def doWithDynamicMethods = {
applicationContext.authenticationService.configChanged()
}
def onChange = { event ->
}
def onApplicationChange = { event ->
// TODO Implement code that is executed when any class in a GrailsApplication changes
// the event contain: event.source, event.application and event.applicationContext objects
}
def onConfigChange = { event ->
applicationContext.authenticationService.configChanged()
}
}