import org.osgi.framework.FrameworkUtil;
import org.osgi.framework.ServiceReference;
-class LinkServlet extends HttpServlet {
+public class LinkServlet extends HttpServlet {
private final BundleContext bc = FrameworkUtil.getBundle(getClass()).getBundleContext();
private static final long serialVersionUID = 3749990143146845708L;
Subject subject = new Subject();
LoginContext lc;
try {
- lc = new LoginContext(NodeConstants.LOGIN_CONTEXT_USER, subject);
+ lc = new LoginContext(NodeConstants.LOGIN_CONTEXT_ANONYMOUS, subject);
lc.login();
return subject;
} catch (LoginException e) {