Marlon Falzetta
Hi,
I see this erros at try login in Ionic app:
Failed to load resource: the server responded with a status of 404 (Not Found)
core.js:1449 ERROR HttpErrorResponse
defaultErrorLogger @ core.js:1449
:8080/api/account:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
polyfills.js:3 POST http://localhost:8080/api/authenticate 403 (Forbidden)
End this error in backend:
2018-05-28 12:37:05.932 DEBUG 13566 — [ XNIO-2 task-3] o.s.b.w.f.OrderedRequestContextFilter : Bound request context to thread: HttpServletRequestImpl [ POST /api/authenticate ]
2018-05-28 12:37:05.933 WARN 13566 — [ XNIO-2 task-3] o.z.p.spring.web.advice.AdviceTrait : Forbidden: Invalid CSRF Token ‘null’ was found on the request parameter ‘_csrf’ or header ‘X-XSRF-TOKEN’.
2018-05-28 12:37:05.935 WARN 13566 — [ XNIO-2 task-3] .m.m.a.ExceptionHandlerExceptionResolver : Resolved exception caused by Handler execution: org.springframework.security.web.csrf.InvalidCsrfTokenException: Invalid CSRF Token ‘null’ was found on the request parameter ‘_csrf’ or header ‘X-XSRF-TOKEN’.
2018-05-28 12:37:05.935 DEBUG 13566 — [ XNIO-2 task-3] o.s.b.w.f.OrderedRequestContextFilter : Cleared thread-bound request context: HttpServletRequestImpl [ POST /api/authenticate ]
Im my backend the class ResourceServerConfiguration not exists and a endpoint /api/auth-info not exists in both backend end ionic app.
Obs.: I dont use OKTA, i use keycloak.
Someone can help-me?