import club.wpia.gigi.pages.main.RegisterPage;
import club.wpia.gigi.util.AuthorizationContext;
import club.wpia.gigi.util.ServerConstants;
+import club.wpia.gigi.util.ServerConstants.Host;
public class DevelLauncher {
}
try {
if ( !ticketUsed) {
- Desktop.getDesktop().browse(new URL("http://" + ServerConstants.getWwwHostNamePort() + "/ticketWait").toURI());
+ Desktop.getDesktop().browse(new URL("http://" + ServerConstants.getHostNamePort(Host.WWW) + "/ticketWait").toURI());
}
} catch (IOException e) {
e.printStackTrace();
}
}.start();
BufferedReader br = new BufferedReader(new InputStreamReader(System.in, "UTF-8"));
- System.out.println("Cacert-gigi system sucessfully started.");
+ System.out.println("Gigi system sucessfully started.");
System.out.println("Press enter to shutdown.");
br.readLine();
System.exit(0);
private static void killPreviousInstance(Properties mainProps) {
try {
String targetPort = mainProps.getProperty("http.port");
- String targetHost = mainProps.getProperty("name.www");
+ String targetHost = mainProps.getProperty("name.www", "www." + mainProps.getProperty("name.suffix"));
URL u = new URL("http://" + targetHost + ":" + targetPort + "/kill");
u.openStream();
} catch (IOException e) {
}
sess.setAttribute(LOGGEDIN, true);
sess.setAttribute(Language.SESSION_ATTRIB_NAME, user.getPreferredLocale());
- sess.setAttribute(AUTH_CONTEXT, new AuthorizationContext(user, user));
+ // ac.isStronglyAuthenticated() set to true to bypass
+ // certificate login for testing
+ sess.setAttribute(AUTH_CONTEXT, new AuthorizationContext(user, user, true));
req.getSession().setAttribute(LOGIN_METHOD, new TranslateCommand("Ticket"));
resp.getWriter().println("ticket consumed");
ticketUsed = true;