spring-projects / spring-projects/spring-security

SEC-2937: Improve documentation: using a custom AccessDeniedHandler in order to process InvalidCsrfTokenExceptions

Open
#3,145 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: docs in: web type: jira type: task
Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Description

Julien Martin (Migrated from SEC-2937) said:

It would be nice if documentation could include a sample on how to configure a custom AccessDeniedHandler in order to process InvalidCsrfTokenExceptions in the case of timeouts.

Relevant section: [http://docs.spring.io/spring-security/site/docs/3.2.6.RELEASE/reference/htmlsingle/#csrf-timeouts]

Contributor guide

Open the contributing guide

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.

Research direction

Open the Spring Security reference section linked in the issue, specifically the CSRF timeouts section, and review how timeout-related InvalidCsrfTokenExceptions are currently documented. Add a sample showing how to configure a custom AccessDeniedHandler for this case, with the documentation clearly explaining the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
documentation, security
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.