Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clean out experimentation with accessing security principal

  • Loading branch information...
commit 8db5e14857d2a82275f63ca3dea9b09a1b4223e1 1 parent c2ae367
James Walker authored
5 src/main/java/au/com/stocksoftware/tide/server/service/tide/UserServiceEJB.java
View
@@ -18,7 +18,6 @@
import javax.annotation.security.DeclareRoles;
@Stateless( name = UserService.EJB_NAME )
-@DeclareRoles("Authenticated")
public class UserServiceEJB
implements UserService
{
@@ -34,10 +33,6 @@
@Nonnull
public List<UserDTO> getUsers()
{
- LOG.severe(" Principal Name : " + _sessionContext.getCallerPrincipal().getName());
- LOG.severe(" Principal ToString : " + _sessionContext.getCallerPrincipal().toString());
- LOG.severe(" Is Authenticated : " + _sessionContext.isCallerInRole("Authenticated"));
- LOG.severe(" Is FooBar : " + _sessionContext.isCallerInRole("FooBar"));
final List<User> users = _userDAO.findAll();
Collections.sort( users, UserComparator.COMPARATOR );
Please sign in to comment.
Something went wrong with that request. Please try again.