diff src/de/mpiwg/itgroup/annotationManager/restlet/RestServer.java @ 5:0be9d53a6967

editor for annotations
author dwinter
date Tue, 13 Dec 2011 17:43:46 +0100
parents e5f0906c107c
children 97f68ab3430f
line wrap: on
line diff
--- a/src/de/mpiwg/itgroup/annotationManager/restlet/RestServer.java	Fri Dec 02 09:25:37 2011 +0100
+++ b/src/de/mpiwg/itgroup/annotationManager/restlet/RestServer.java	Tue Dec 13 17:43:46 2011 +0100
@@ -65,8 +65,8 @@
         String realm = "Annotation Service";
 
         JaasVerifier verifier = new JaasVerifier("BasicJaasAuthenticationApplication");
-        
-        
+        //JaasVerifier verifier = new JaasVerifier("DummyAuthentication");
+       
         Configuration jaasConfig;
         jaasConfig = createConfiguration();
         
@@ -138,6 +138,7 @@
 		router.attach("/dummy",Dummy.class);
 		
 		//router.attach("",redirector);
+		router.attach("/annotator",ExtendedAnnotationInput.class);
 		router.attach("/",AnnotatorInfo.class);
 		authenticator.setNext(router);
 	    return authenticator;
@@ -183,6 +184,7 @@
 			Configuration conf = createConfiguration();
 			
 			lc = new LoginContext("BasicJaasAuthenticationApplication", null, new MyCallBackHandler(username,password),conf);
+			//lc = new LoginContext("DummyAuthentication", null, new MyCallBackHandler(username,password),conf);
 			lc.login();
 		} catch (LoginException e) {
 			// TODO Auto-generated catch block