File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
web/src/main/java/org/springframework/security/web/authentication Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2016 the original author or authors.
2+ * Copyright 2002-2025 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2323import org .apache .commons .logging .Log ;
2424import org .apache .commons .logging .LogFactory ;
2525
26+ import org .springframework .http .HttpStatus ;
2627import org .springframework .security .core .AuthenticationException ;
2728import org .springframework .security .web .AuthenticationEntryPoint ;
2829
@@ -55,7 +56,7 @@ public class Http403ForbiddenEntryPoint implements AuthenticationEntryPoint {
5556 public void commence (HttpServletRequest request , HttpServletResponse response , AuthenticationException arg2 )
5657 throws IOException {
5758 logger .debug ("Pre-authenticated entry point called. Rejecting access" );
58- response .sendError (HttpServletResponse . SC_FORBIDDEN , "Access Denied" );
59+ response .sendError (HttpStatus . FORBIDDEN . value (), HttpStatus . FORBIDDEN . getReasonPhrase () );
5960 }
6061
6162}
You can’t perform that action at this time.
0 commit comments