問題タブ [grails-4]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
grails - grails 4セッションレジストリが空です
grails 4 にアップグレードすると、sessionRegistry.getAllPrincipal() は常に空になります。
resources.groovy の元の Spring Bean は
これが機能しなくなったので、resources.groovyをに更新しようとしました
これらの Bean はすべて org.springframework.security.web.authentication.session パッケージからのものです。
grails.plugin.springsecurity.providerNames にも名前を追加しました
DaoAuthenticationProvider は、カスタム認証プロバイダーによって拡張されます。ログインとログアウトは正常に機能しますが、プリンシパルはアップグレードされたアプリに登録されません。それらを手動で登録する必要がありますか (sessionRegistry.registerNewSession())?
grails install-templates を使用してから、src/templates/war の web.xml を編集するという古い回答があります。ただし、grails 4 では、install-templates は war/web.xml を生成しませんでした。
/WEB-INF/web.xml に追加しようとしましたが、まだうまくいきません。