AuthenticationPrincipalArgumentResolver should use BeanResolver #3949

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

Comments

Projects
None yet
1 participant
@rwinch
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 from AuthenticationPrincipalArgumentResolver should use SecurityExpressionHandler<MethodInvocation> to AuthenticationPrincipalArgumentResolver should use BeanResolver Oct 18, 2016

@rwinch rwinch closed this in aaa9708 Oct 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment