0dab88f8198e8e8d35bbb65673186ad8df1a7f64 max Thu Nov 7 06:49:40 2024 -0800 adding API key section to hgHubConnect, for the "hubtools up" command, refs #34405 diff --git src/hg/inc/wikiLink.h src/hg/inc/wikiLink.h index d097035..9a6b2e6 100644 --- src/hg/inc/wikiLink.h +++ src/hg/inc/wikiLink.h @@ -48,36 +48,43 @@ /* Return possibly empty list of cookie strings for the caller to set. * If login cookies are obsolete but (formerly) valid, the results sets updated cookies. * If login cookies are present but invalid, the result deletes/expires the cookies. * Otherwise returns NULL (no change to cookies). */ 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 *wikiLinkUserId(); +/* Return the user ID specified in cookies from the browser. Does not check if user is logged in. + * To make sure that the ID is valid, call this only after you have checked with wikiLinkUserName() that the user is logged in. */ + char *wikiLinkUserLoginUrl(char *hgsid); /* Return the URL for the wiki user login page. */ char *wikiLinkUserLoginUrlReturning(char *hgsid, char *returnUrl); /* Return the URL for the wiki user login page. */ +char *wikiLinkEncodeReturnUrl(char *hgsid, char *cgiName, char* urlSuffix); +/* Return a CGI-encoded URL with hgsid to a CGI. Free when done. */ + char *wikiLinkUserLogoutUrl(char *hgsid); /* Return the URL for the wiki user logout page. */ char *wikiLinkUserLogoutUrlReturning(char *hgsid, char *returnUrl); /* Return the URL for the wiki user logout page. */ char *wikiLinkUserSignupUrl(char *hgsid); /* Return the URL for the user signup page. */ char *wikiLinkChangePasswordUrl(char *hgsid); /* Return the URL for the user change password page. */ char *wikiServerAndCgiDir(); /* return the current full absolute URL up to the CGI name, like * http://genome.ucsc.edu/cgi-bin/. If login.relativeLink=on is