Reset this back, as this looks to be the wrong approach

Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/f3056209
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/f3056209
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/f3056209

Branch: refs/heads/master
Commit: f3056209d0e7f810b926563a64248c0ac32d4ef2
Parents: b12492d
Author: Jonathan Gallimore <[email protected]>
Authored: Mon Nov 19 10:16:29 2018 +0000
Committer: Roberto Cortez <[email protected]>
Committed: Fri Dec 7 18:13:05 2018 +0000

----------------------------------------------------------------------
 .../org/apache/tomee/microprofile/jwt/MPJWTInitializer.java   | 7 -------
 1 file changed, 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/f3056209/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/MPJWTInitializer.java
----------------------------------------------------------------------
diff --git 
a/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/MPJWTInitializer.java 
b/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/MPJWTInitializer.java
index df92961..cede7dc 100644
--- 
a/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/MPJWTInitializer.java
+++ 
b/mp-jwt/src/main/java/org/apache/tomee/microprofile/jwt/MPJWTInitializer.java
@@ -16,8 +16,6 @@
  */
 package org.apache.tomee.microprofile.jwt;
 
-import org.apache.webbeans.config.WebBeansContext;
-import org.apache.webbeans.spi.SecurityService;
 import org.eclipse.microprofile.auth.LoginConfig;
 
 import javax.servlet.FilterRegistration;
@@ -54,11 +52,6 @@ public class MPJWTInitializer implements 
ServletContainerInitializer {
                 // See 
https://github.com/eclipse/microprofile-jwt-auth/issues/70 to clarify this point
             }
 
-            final WebBeansContext webBeansContext = 
WebBeansContext.currentInstance();
-            final SecurityService securityService = 
webBeansContext.getSecurityService();
-
-            webBeansContext.registerService(SecurityService.class, new 
JWTWrappedSecurityService(securityService));
-
             final FilterRegistration.Dynamic mpJwtFilter = 
ctx.addFilter("mp-jwt-filter", MPJWTFilter.class);
             mpJwtFilter.setAsyncSupported(true);
             mpJwtFilter.addMappingForUrlPatterns(null, false, "/*");

Reply via email to