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:
parent
abc162a0d0
commit
ba89daec1c
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user