Grails 1.3.7 を使用しています。認証中に作成されるカスタムUserDetailsオブジェクトがあります。customUserDetailsServiceこのカスタムUserDetailsオブジェクトはセッションのどこかに保存されると思います。ただし、それを取得する方法が見つかりません。
私はそれができると思っていましたが、それは私のカスタム UserDetails ではなく、SecurityContextHolder.getContext().getAuthentication().getDetails()type: のオブジェクトを返します。org.springframework.security.web.authentication.WebAuthenticationDetails