Skip to content

HttpSecurityDsl does not support addFilterBefore and addFilterAfter #8316

@mengelbrecht

Description

@mengelbrecht

Summary

HttpSecurityBuilder allows adding a filter before or after a specific filter using the addFilterBefore and addFilterAfter function. However, these are missing in HttpSecurityDsl as it only supports the addFilterAt function.

Actual Behavior

As a workaround these functions can be called by directly accessing the http property of the HttpSecurityDsl:

http {
    http.addFilterBefore(..., ...)
    http.addFilterAfter(..., ...)
}

Expected Behavior

The functions should be available in the HttpSecurityDsl:

http {
    addFilterBefore(..., ...)
    addFilterAfter(..., ...)
}

Version

5.3.1.RELEASE

Metadata

Metadata

Assignees

Labels

in: configAn issue in spring-security-configtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions