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
1 Answer
Reset to default 0It 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
版权声明:本文标题:spring boot - SpringBoot "Pre-authenticated entry point called. Rejecting access" - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738687951a2106934.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论