Skip to content

Commit

Permalink
Updated endpoint to point to correct eBay test server
Browse files Browse the repository at this point in the history
  • Loading branch information
Neb Pesic committed Oct 6, 2015
1 parent 4ff509c commit 7edbf34
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
package org.ebayopensource.fidouafclient.util;

public class Endpoints {

public static final String SERVER =
//"http://openidconnect.ebay.com";
"http://www.head2toes.org";
"http://openidconnect.ebay.com";
//"http://www.head2toes.org";
public static final String GET_AUTH_REQUEST = "/fidouaf/v1/public/authRequest";
public static final String POST_AUTH_RESPONSE = "/fidouaf/v1/public/authResponse";
public static final String POST_DEREG_RESPONSE = "/fidouaf/v1/public/deregRequest";
public static final String GET_REG_REQUEST = "/fidouaf/v1/public/regRequest/";
public static final String POST_REG_RESPONSE = "/fidouaf/v1/public/regResponse";


private static void check() {
String serverEndpoint = Preferences.getSettingsParam("serverEndpoint");
if (serverEndpoint!=null && serverEndpoint.length() == 0){
setDefaults();
}

}

public static String getServer() {
check();
return Preferences.getSettingsParam("serverEndpoint");
Expand Down Expand Up @@ -54,7 +54,7 @@ public static String getRegRequestEndpoint() {
check();
return getServer()+Preferences.getSettingsParam("regReg");
}

//Path
public static String getAuthResponsePath() {
check();
Expand Down Expand Up @@ -84,7 +84,7 @@ public static String getRegRequestPath() {
check();
return Preferences.getSettingsParam("regReg");
}

public static void setDefaults (){
Preferences.setSettingsParam("serverEndpoint", SERVER);
Preferences.setSettingsParam("authReg", GET_AUTH_REQUEST);
Expand Down

0 comments on commit 7edbf34

Please sign in to comment.