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
public String getRequestTokenServiceURL() {
return "https://api." + host + "/api/oauth/request_token";
return "http://api." + host + "/api/oauth/request_token";
}
@Override
public String getAccessTokenServiceURL() {
return "https://api." + host + "/api/oauth/access_token";
return "http://api." + host + "/api/oauth/access_token";
}
@Override
public String getUserAuthorizationURL() {
return "https://www." + host + "/signin/app";
return "http://www." + host + "/signin/app";
}
@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) {
Cookie c = new Cookie(name, value);
c.setDomain(getDomain(request));
//c.setDomain(getDomain(request));
c.setPath(PATH);
c.setMaxAge(max_age);
response.addCookie(c);
@ -68,7 +68,7 @@ public class CookiesUtilities {
public static void deleteCookie(HttpServletRequest request, HttpServletResponse response, String name) {
Cookie c = new Cookie(name, "");
c.setDomain(getDomain(request));
//c.setDomain(getDomain(request));
c.setPath(PATH);
c.setMaxAge(0);
response.addCookie(c);