How to obtain logged in user name in JSF when using container managed authentication
The easiest way to get at the logged in user via EL (Expression Language) in JSF 2.0 would be:
#{request.remoteUser}
Tobbe's answer would work well to get at the remote user from within a backing bean.
The simple (maybe not the best) answer was:
FacesContext.getCurrentInstance().getExternalContext().getRemoteUser()
I'm shocked about how long it took me to figure that out.