Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Align JWT Testing Documentation #17951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ElMansourH wants to merge 1 commit into spring-projects:main
base: main
Choose a base branch
Loading
from ElMansourH:feature/10028-Align-JWT-Testing-Documentation

Conversation

@ElMansourH
Copy link

@ElMansourH ElMansourH commented Sep 23, 2025
edited
Loading

Description

Updates the "Testing JWT Authentication" sections in both servlet and webflux documentation to match the consistent structure and style used by other OAuth 2.0 testing sections.

Changes

  • Title updates: Changed section titles from "Testing JWT Authentication" to "Testing OAuth 2.0 Resource Servers with JWT"

  • Added controller examples: Shows when SecurityMockMvcRequestPostProcessors#jwt() and SecurityMockServerConfigurers#mockJwt() are necessary (when controllers expect @AuthenticationPrincipal Jwt)

  • Improved introductions: Added consistent motivation paragraphs similar to other OAuth 2.0 sections
    Enhanced clarity: Better explains the specific use case for JWT testing helpers

Fixes: #10028

Signed-off-by: Houssam El Mansouri <elmansouri.houssam@gmail.com>
@ElMansourH ElMansourH force-pushed the feature/10028-Align-JWT-Testing-Documentation branch from 848da13 to 53573ab Compare September 23, 2025 12:22
Copy link
Author

@jzheaux can you have a look?

Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @Chu3laMan, thanks for looking to improve the docs!

I'm not yet sure what you are wanting to achieve here, and maybe you can help me. The docs you added are duplicates of paragraphs that follow in both sections. Also, since JWT is covered first, phrases like "Similar to opaque token" can be confusing since it hasn't yet been covered.

Can you tell me more what you are wanting to get out of the rearrangement and then I'm happy to help get the docs to that point with you?

@jzheaux jzheaux added status: waiting-for-feedback We need additional information before we can continue and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jzheaux jzheaux jzheaux left review comments

Assignees

No one assigned

Labels

status: waiting-for-feedback We need additional information before we can continue

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Align JWT Testing Documentation

AltStyle によって変換されたページ (->オリジナル) /