make oauth against freebase work again in chrome

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2537 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2012-08-23 20:58:08 +00:00
parent abc162a0d0
commit ba89daec1c
2 changed files with 5 additions and 5 deletions

View File

@ -52,17 +52,17 @@ public class FreebaseProvider extends Provider {
@Override @Override
public String getRequestTokenServiceURL() { public String getRequestTokenServiceURL() {
return "https://api." + host + "/api/oauth/request_token"; return "http://api." + host + "/api/oauth/request_token";
} }
@Override @Override
public String getAccessTokenServiceURL() { public String getAccessTokenServiceURL() {
return "https://api." + host + "/api/oauth/access_token"; return "http://api." + host + "/api/oauth/access_token";
} }
@Override @Override
public String getUserAuthorizationURL() { public String getUserAuthorizationURL() {
return "https://www." + host + "/signin/app"; return "http://www." + host + "/signin/app";
} }
@Override @Override

View File

@ -60,7 +60,7 @@ public class CookiesUtilities {
public static void setCookie(HttpServletRequest request, HttpServletResponse response, String name, String value, int max_age) { public static void setCookie(HttpServletRequest request, HttpServletResponse response, String name, String value, int max_age) {
Cookie c = new Cookie(name, value); Cookie c = new Cookie(name, value);
c.setDomain(getDomain(request)); //c.setDomain(getDomain(request));
c.setPath(PATH); c.setPath(PATH);
c.setMaxAge(max_age); c.setMaxAge(max_age);
response.addCookie(c); response.addCookie(c);
@ -68,7 +68,7 @@ public class CookiesUtilities {
public static void deleteCookie(HttpServletRequest request, HttpServletResponse response, String name) { public static void deleteCookie(HttpServletRequest request, HttpServletResponse response, String name) {
Cookie c = new Cookie(name, ""); Cookie c = new Cookie(name, "");
c.setDomain(getDomain(request)); //c.setDomain(getDomain(request));
c.setPath(PATH); c.setPath(PATH);
c.setMaxAge(0); c.setMaxAge(0);
response.addCookie(c); response.addCookie(c);