Andrea Aime created GEOS-6144 |
Issue Type: |
Bug |
Assignee: |
|
Components: |
Monitoring |
Created: |
08/Nov/13 9:18 AM |
Description: |
Quoting Christian’s observation about how we get the user: Different authentication mechanisms produce different kind of authentication objects. It is not guaranteed that auth.getPrincipal() is a user object. The Spring Security Authentication interface declares Object getPrincipal(); Maybe the the following change would help to improve the situation if (auth.getPrincipal() != null ) { Unknown macro: { data.setRemoteUser(((User)auth.getPrincipal()).getUsername()); } else Unknown macro: { data.setRemoteUser(auth.getPrincipal().toString); } } |
Project: |
|
Priority: |
Major |
Reporter: |