Spring セキュリティ プラグインを使用しAuthentication 2.0.1
て Web サービスを認証しています。Authentication Service を介してログインしてユーザーセッションを設定することに成功しました。また、認証コントローラーで成功応答を取得sessionUser
します。isLoggedIn
しかし、私は他のコントローラーからアクセスすることができません.私のコードを見てください.認証コントローラー以外の認証サービスにアクセスできません.助けてください.
class ModuleController {
def authenticationService
def beforeInterceptor = [action: this.&auth]
private auth() {
println 'checking authentication in module controller : '+authenticationService.isLoggedIn(request)
}
}