admin管理员组

文章数量:1204633

o.s.web.servlet.DispatcherServlet        : Completed initialization in 4 ms
o.s.security.web.FilterChainProxy        : Securing POST /api/public/register
o.s.s.w.a.AnonymousAuthenticationFilter  : Set SecurityContextHolder to anonymous SecurityContext
o.s.s.w.s.HttpSessionRequestCache        : Saved request http://localhost:8080/api/public/register?continue to session
o.s.s.w.a.Http403ForbiddenEntryPoint     : Pre-authenticated entry point called. Rejecting access
o.s.security.web.FilterChainProxy        : Securing POST /error
o.s.security.web.FilterChainProxy        : Secured POST /error
o.s.web.servlet.DispatcherServlet        : "ERROR" dispatch for POST "/error", parameters={}
s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
o.j.s.OpenEntityManagerInViewInterceptor : Opening JPA EntityManager in OpenEntityManagerInViewInterceptor
o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Using 'application/json', given [*/*] and supported [application/json, application/*+json]
o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Writing [{timestamp=Mon Jan 20 05:51:15 EST 2025, status=403, error=Forbidden, path=/api/public/register}]
o.j.s.OpenEntityManagerInViewInterceptor : Closing JPA EntityManager in OpenEntityManagerInViewInterceptor
o.s.web.servlet.DispatcherServlet        : Exiting from "ERROR" dispatch, status 403

please can any one help with this error

o.s.web.servlet.DispatcherServlet        : Completed initialization in 4 ms
o.s.security.web.FilterChainProxy        : Securing POST /api/public/register
o.s.s.w.a.AnonymousAuthenticationFilter  : Set SecurityContextHolder to anonymous SecurityContext
o.s.s.w.s.HttpSessionRequestCache        : Saved request http://localhost:8080/api/public/register?continue to session
o.s.s.w.a.Http403ForbiddenEntryPoint     : Pre-authenticated entry point called. Rejecting access
o.s.security.web.FilterChainProxy        : Securing POST /error
o.s.security.web.FilterChainProxy        : Secured POST /error
o.s.web.servlet.DispatcherServlet        : "ERROR" dispatch for POST "/error", parameters={}
s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
o.j.s.OpenEntityManagerInViewInterceptor : Opening JPA EntityManager in OpenEntityManagerInViewInterceptor
o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Using 'application/json', given [*/*] and supported [application/json, application/*+json]
o.s.w.s.m.m.a.HttpEntityMethodProcessor  : Writing [{timestamp=Mon Jan 20 05:51:15 EST 2025, status=403, error=Forbidden, path=/api/public/register}]
o.j.s.OpenEntityManagerInViewInterceptor : Closing JPA EntityManager in OpenEntityManagerInViewInterceptor
o.s.web.servlet.DispatcherServlet        : Exiting from "ERROR" dispatch, status 403

please can any one help with this error

Share Improve this question edited Jan 20 at 15:38 John Williams 5,3752 gold badges10 silver badges24 bronze badges asked Jan 20 at 15:13 Prasanth KunchanapalliPrasanth Kunchanapalli 1 2
  • Please add your Security config or SecurityFilterChain code. – John Williams Commented Jan 20 at 15:42
  • Please provide enough code so others can better understand or reproduce the problem. – Community Bot Commented Jan 20 at 16:43
Add a comment  | 

1 Answer 1

Reset to default 0

It sounds like the issue may be with how Spring Security is handling the pre-authentication process. You should check if the authentication headers are being passed correctly (especially in the case of a reverse proxy or external auth system). Also, ensure that your Spring Security configuration has the appropriate pre-authenticated entry point and authentication provider set up. If the user roles or permissions are incorrectly configured, that could also cause the rejection. Let me know if you need help with specific configurations!

本文标签: spring bootSpringBoot quotPreauthenticated entry point called Rejecting accessquotStack Overflow