Roberto Sánchez
2014-01-26 6d8aff7b3657332020ef215eb1b2fc16017e4cc8
securis/src/main/java/net/curisit/securis/security/SecurityInterceptor.java
....@@ -52,9 +52,6 @@
5252 com.google.inject.Provider<EntityManager> emProvider;
5353
5454 public void filter(ContainerRequestContext containerRequestContext) throws IOException {
55
- // log.info("scw {}, {}", scw, scw.getClass());
56
- log.info("MACHED res: {}", containerRequestContext.getUriInfo().getMatchedResources());
57
- // dispatcher.getDefaultContextObjects().remove(SecurityContextWrapper.class);
5855 ResourceMethodInvoker methodInvoker = (ResourceMethodInvoker) containerRequestContext.getProperty("org.jboss.resteasy.core.ResourceMethodInvoker");
5956 Method method = methodInvoker.getMethod();
6057
....@@ -82,11 +79,8 @@
8279 scw.setOrganizationsIds(orgs);
8380 containerRequestContext.setSecurityContext(scw);
8481 // Next line provide injection in resource methods
85
- log.info("TEST context {}", ResteasyProviderFactory.getContextData(BasicSecurityContext.class));
8682 ResteasyProviderFactory.pushContext(BasicSecurityContext.class, scw);
87
- // log.info("{}", dispatcher.getDefaultContextObjects());
88
- // dispatcher.getDefaultContextObjects().put(SecurityContextWrapper.class, secContext);
89
- log.info("Added custom SecurityContext for user {}", username);
83
+ log.debug("Added custom SecurityContext for user {}, orgs: {}", username, orgs);
9084 }
9185 }
9286