We're updating the issue view to help you get more done. 

TicketOrCredentialPrincipalResolver results in ClassCastException when implementing own UserDetails implementation

Description

The method

1 protected String resolveFromInternal(final JoinPoint joinPoint)

should be casting the authentication.getPrincipal() to a UserDetails object instead of a User object.
Original code:

1 return ((User) authentication.getPrincipal()).getUsername();

Change request:

1 return ((UserDetails) authentication.getPrincipal()).getUsername();

Environment

None

Status

Assignee

ScottS

Reporter

Scott Belnap

Labels

None

Estimated End Date

None

Audience

None

Components

Fix versions

Affects versions

3.4.8

Priority

Minor