Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuthenticationPrincipalArgumentResolver should use BeanResolver #3949

Closed
rwinch opened this issue Jun 27, 2016 · 0 comments
Closed

AuthenticationPrincipalArgumentResolver should use BeanResolver #3949

rwinch opened this issue Jun 27, 2016 · 0 comments
Assignees
Labels
in: config An issue in spring-security-config in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement
Milestone

Comments

@rwinch
Copy link
Member

rwinch commented Jun 27, 2016

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
    ...
}
@rwinch rwinch added this to the 4.2.0 M1 milestone Jun 27, 2016
@rwinch rwinch modified the milestones: 4.2.0 M2, 4.2.0 M1 Sep 23, 2016
@rwinch rwinch self-assigned this Oct 18, 2016
@rwinch rwinch changed the title AuthenticationPrincipalArgumentResolver should use SecurityExpressionHandler<MethodInvocation> AuthenticationPrincipalArgumentResolver should use BeanResolver Oct 18, 2016
@rwinch rwinch added in: config An issue in spring-security-config in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement labels Oct 18, 2016
@rwinch rwinch closed this as completed in aaa9708 Oct 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: config An issue in spring-security-config in: web An issue in web modules (web, webmvc) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant