[FIXED JENKINS-23208] Principal is UserDetails.

Fast fix... Not really tested.