2014-02-14 116 views

回答

0

如果您使用的是回調倒閉,你可以從AuthenticationSuccessEvent的信息。

grails.plugin.springsecurity.onAuthenticationSuccessEvent = { e, appCtx -> 
    // handle AuthenticationSuccessEvent 
    println "User id ${e.authentication.principal.id} was authenticated" 
} 
相關問題