7ef1462ddbfa4d9017a98fbe460df3b0e95b25d9
chinhli
  Fri May 4 15:31:46 2012 -0700
Reuse the wiki cookies so that the existing session user can stay logged in and do not need to login to the new hgLogin system after the switch over.
diff --git src/hg/inc/wikiLink.h src/hg/inc/wikiLink.h
index 967da5a..8c0ddbd 100644
--- src/hg/inc/wikiLink.h
+++ src/hg/inc/wikiLink.h
@@ -1,26 +1,35 @@
 /* wikiLink - interoperate with a wiki site (share user identities). */
 
 #ifndef WIKILINK_H
 #define WIKILINK_H
 
 /* hg.conf wiki parameters -- wikiLink is disabled if any are undefined. */
 #define CFG_WIKI_HOST "wiki.host"
 #define CFG_WIKI_USER_NAME_COOKIE "wiki.userNameCookie"
 #define CFG_WIKI_LOGGED_IN_COOKIE "wiki.loggedInCookie"
 #define CFG_WIKI_SESSION_COOKIE "wiki.sessionCookie"
 
+/* hg.conf login system parameter -- using non-wiki login system if defined */ 
+#define CFG_LOGIN_SYSTEM_NAME "login.systemName"
+
+char *loginSystemName();
+/* Return the wiki host specified in hg.conf, or NULL.  Allocd here. */
+
+boolean loginSystemEnabled();
+/* Return TRUE if login.systemName  parameter is defined in hg.conf . */
+
 char *wikiLinkHost();
 /* Return the wiki host specified in hg.conf, or NULL.  Allocd here. */
 
 boolean wikiLinkEnabled();
 /* Return TRUE if all wiki.* parameters are defined in hg.conf . */
 
 char *wikiLinkUserName();
 /* Return the user name specified in cookies from the browser, or NULL if 
  * the user doesn't appear to be logged in. */
 
 char *wikiLinkUserLoginUrl(int hgsid);
 /* Return the URL for the wiki user login page. */
 
 char *wikiLinkUserLogoutUrl(int hgsid);
 /* Return the URL for the wiki user logout page. */