spring-security-samples icon indicating copy to clipboard operation
spring-security-samples copied to clipboard

Make `/error` public for samples

Open sjohnr opened this issue 1 year ago • 0 comments

Current behavior:

Some samples (for example, the servlet/spring-boot/java/oauth2/webclient sample) are attempting to show a Spring Boot error page in certain scenarios, but instead show the login page when the user is not authenticated.

Expected behavior:

When the user is not authenticated and an error occurs (for example, calling a resource server causes a 401 Unauthorized response due to a missing access token), the error page should be shown.

sjohnr avatar Aug 08 '24 16:08 sjohnr