I'm trying to port an application that's using CMA to use Acegi. There are many places in the code where the following syntax is used:
With CMA, this returns "mraible" (my login name). However, with Acegi, it returns:
This happens with Acegi 0.8.3 and Spring 1.2.4 on Tomcat 5.0.28 with JDK 1.4.2. Is this a bug or as designed?
Principal principal = request.getUserPrincipal(); String username = principal.getName();
userName= "[email protected]: Username: mraible; Password: [PROTECTED]; Enabled: true; AccountNonExpired: true; credentialsNonExpired: true; AccountNonLocked: true; Granted Authorities: editor"