Hello, I have a problem with WebApps Authorization when disabling CsrfPreventionFilter on springboot application, I already create CsrfAutoConfiguration (following this thread How to disable CsrfPreventionFilter? - #9 by Wesley_Connor) but another problem occured.
I can navigate to /app/admin/default/#/login
but after I provide my credentials and click login I see the Admin page for a quick second, then it returns to the login screen. Looking a Chrome’s DevTools, I see the following XHR calls:
GET /api/engine/engine/
returns 200 with body [{“name”:“default”}]
POST /api/admin/auth/user/default/login/cockpit
returns 200 with body {“userId”:“alvent”,“authorizedApps”:[“admin”,“tasklist”,“welcome”,“cockpit”]}
GET /api/admin/auth/user/default
returns 404 with body {“timestamp”:“2021-03-16T03:21:59.107+0000”,“status”:404,“error”:“Not Found”,“message”:“Not Found”,“path”:"/api/admin/auth/user/default"}
GET /api/engine/engine/default/telemetry/configuration
returns 401 with body {“timestamp”:“2021-03-16T03:21:59.148+0000”,“status”:401,“error”:“Unauthorized”,“message”:“No message available”,“path”:"/api/engine/engine/default/telemetry/configuration"}
GET /api/engine/engine/default/task/count
returns 401 with body {“timestamp”:“2021-03-16T03:21:59.148+0000”,“status”:401,“error”:“Unauthorized”,“message”:“No message available”,“path”:"/api/engine/engine/default/task/count"}
GET /api/engine/engine/default/process-definition/count?latestVersion=true
returns 401 with body {“timestamp”:“2021-03-16T03:21:59.149+0000”,“status”:401,“error”:“Unauthorized”,“message”:“No message available”,“path”:"/api/engine/engine/default/process-definition/count"}
GET /api/engine/engine/default/process-definition/statistics?rootIncidents=true
returns 401 with body {“timestamp”:“2021-03-16T03:21:59.174+0000”,“status”:401,“error”:“Unauthorized”,“message”:“No message available”,“path”:"/api/engine/engine/default/process-definition/statistics"}
Can anyone please help me with this