Make `/error` public for samples

Open
#298 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, spring-boot

Research direction

Start with the servlet/spring-boot/java/oauth2/webclient sample and inspect its security configuration and error handling. Run the sample while unauthenticated, reproduce the missing-access-token 401, and verify that the Spring Boot error page appears instead of the login page.

Written by the indexing model from the issue text.

Description

type: bug

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.

Dominant language
Java
Stars
1.8k
Forks
797
Avg merge
3m
Merged PRs (30d)
5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from spring-projects/spring-security-samples

All issues in spring-projects/spring-security-samples

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.