tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject tomee git commit: TOMEE-1479 using security service to impl embedded http request.login
Date Wed, 17 Dec 2014 20:37:26 GMT
Repository: tomee
Updated Branches:
  refs/heads/tomee-1.7.x 8f0c30058 -> 5ffdc91fe


TOMEE-1479 using security service to impl embedded http request.login


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

Branch: refs/heads/tomee-1.7.x
Commit: 5ffdc91fecf84ccf40b48916a0868fe29abd526e
Parents: 8f0c300
Author: Romain Manni-Bucau <rmannibucau@apache.org>
Authored: Wed Dec 17 21:36:44 2014 +0100
Committer: Romain Manni-Bucau <rmannibucau@apache.org>
Committed: Wed Dec 17 21:36:44 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/openejb/server/httpd/HttpRequestImpl.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/5ffdc91f/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
----------------------------------------------------------------------
diff --git a/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
b/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
index a90a2c5..c4339a9 100644
--- a/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
+++ b/server/openejb-http/src/main/java/org/apache/openejb/server/httpd/HttpRequestImpl.java
@@ -22,6 +22,7 @@ import org.apache.openejb.spi.SecurityService;
 import org.apache.openejb.util.ArrayEnumeration;
 import org.apache.openejb.util.Logger;
 
+import javax.security.auth.login.LoginException;
 import javax.servlet.AsyncContext;
 import javax.servlet.DispatcherType;
 import javax.servlet.RequestDispatcher;
@@ -874,7 +875,11 @@ public class HttpRequestImpl implements HttpRequest {
 
     @Override
     public void login(final String s, final String s1) throws ServletException {
-        // no-op
+        try {
+            SystemInstance.get().getComponent(SecurityService.class).login(s, s1);
+        } catch (final LoginException e) {
+            throw new ServletException(e);
+        }
     }
 
     @Override


Mime
View raw message