- CurrentSubject.callAs(subject, () -> {
- RemoteAuthUtils.configureRequestSecurity(remoteAuthExchange);
- return null;
- });
-// Subject.doAs(subject, new PrivilegedAction<Void>() {
-//
-// @Override
-// public Void run() {
-// // TODO also set login context in order to log out ?
-// RemoteAuthUtils.configureRequestSecurity(new ServletHttpRequest(request));
-// return null;
-// }
-//
-// });