Skip to content

Correct typo in MVC security when explaining when UserDetailsService auto-configuration will back off #44250

Closed as not planned
@Saaiiikrishna

Description

@Saaiiikrishna

Description of the Issue

In the Spring Security documentation, the following sentence appears incorrect due to a missing conditional "if":

"The auto-configuration of a UserDetailsService will also back off any of the following Spring Security modules is on the classpath:"

This sentence is misleading as it suggests that the UserDetailsService auto-configuration will actively "back off" those modules, which is not the intended behavior.

Suggested Correction

The corrected sentence should be:

"The auto-configuration of a UserDetailsService will also back off if any of the following Spring Security modules is on the classpath:"

Why is this Correction Necessary?

  • Grammar & Clarity: The missing "if" makes the sentence grammatically incorrect and harder to understand.
  • Technical Accuracy: Without "if," it implies that UserDetailsService actively disables other modules, while the correct behavior is that UserDetailsService auto-configuration is skipped when those modules are present.

Steps to Reproduce:

  1. Visit the [Spring Security documentation](https://docs.spring.io/spring-security/reference/index.html) (or the specific file in the GitHub repository).
  2. Locate the section discussing UserDetailsService auto-configuration.
  3. Observe the incorrect sentence structure.

Proposed Fix:

Update the documentation to include the missing "if" for better clarity and correctness.

Would appreciate your confirmation and update on this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions