Skip to content

AuthenticationPrincipalArgumentResolver should use BeanResolver #3949

@rwinch

Description

@rwinch

AuthenticationPrincipalArgumentResolver should use BeanResolver. This will allow the @AuthenticationPrincipal to refer to a @Bean. This would allow something like:

@AuthenticationPrincipal("@jpaEntityManager.merge(#this)")
public String doStuff(MyUserEntity currentUser) {
    currentUser.setProperty(...);
    // MyUserEntity is attached and will be merged
    ...
}

Metadata

Metadata

Assignees

Labels

in: configAn issue in spring-security-configin: webAn issue in web modules (web, webmvc)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions