Skip to content

Add order offset to @EnableMethodSecurity #13214

Closed
@jzheaux

Description

@jzheaux

Since @EnableMethodSecurity defines multiple method interceptors, an order attribute may be misleading. That said, it would be nice to be able to change the default position its method interceptors have in the Spring AOP advisor chain.

This is already possible by re-declaring each method interceptor as a bean and setting their individual order values one-by-one.

Instead, an attribute would make this easier. Something like:

@EnableMethodSecurity(offset = 1000)

would mean that the method interceptors should be given values increasing from 1000, allowing applications to select where the interceptors should be placed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: configAn issue in spring-security-configstatus: ideal-for-contributionAn issue that we actively are looking for someone to help us withtype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions