Skip to content

Move Pre/PostAuthorize annotations to org.springframework.security.authorization.method package #14844

Closed as not planned
@marcusdacoregio

Description

@marcusdacoregio

When #14712 was merged, a package tangle was introduced from the org.springframework.security.access package to the org.springframework.security.authorization package. More specifically org.springframework.security.access.prepost.PreAuthorize (and PostAuthorize) are using org.springframework.security.authorization.method.MethodAuthorizationDeniedHandler and org.springframework.security.authorization.method.MethodAuthorizationDeniedPostProcessor.

To do this, we can deprecate the Pre/PostAuthorize from the access package and then create new annotations on the authorization.method package. The old annotations can use the new ones as meta-annotations.

Metadata

Metadata

Labels

in: coreAn issue in spring-security-coretype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions