Commit c30e1ae5 authored by Matija Obreza's avatar Matija Obreza

Using new Production server URL https://api.genesys-pgr.org

parent 6c8ce659
......@@ -65,10 +65,10 @@ import java.util.Set;
public class SettingsDialog extends Dialog {
private static final String CUSTOM_SERVER_URL = "http://localhost:8080";
public static final String CUSTOM_SERVER_URL = "http://localhost:8080";
private static final String SANDBOX_SERVER_URL = "https://api.sandbox.genesys-pgr.org";
private static final String SANDBOX_CLIENT_ID = "Ap8Od.ydMSWlJ7qL9sJWtXXMCA@sandbox.genesys-pgr.org";
private static final String PRODUCTION_SERVER_URL = "https://www.genesys-pgr.org";
private static final String PRODUCTION_SERVER_URL = "https://api.genesys-pgr.org";
private static final String PRODUCTION_CLIENT_ID = "fTxcm.TrySiiiOLncyeWfmQKyp@www.genesys-pgr.org";
private Binding scope;
......
......@@ -16,12 +16,13 @@
package org.genesys2.anno.model;
import org.genesys2.anno.gui.AbstractModelObject;
import org.genesys2.anno.gui.SettingsDialog;
public class OAuthSettings extends AbstractModelObject {
private String serverUrl = "http://localhost:8080";
private String authorizationEndpoint = "http://localhost:8080/oauth/authorize";
private String tokenEndpoint = "http://localhost:8080/oauth/token";
private String apiUrl = "http://localhost:8080/api/v0";
private String serverUrl = SettingsDialog.CUSTOM_SERVER_URL;
private String authorizationEndpoint = SettingsDialog.CUSTOM_SERVER_URL + "/oauth/authorize";
private String tokenEndpoint = SettingsDialog.CUSTOM_SERVER_URL + "/oauth/token";
private String apiUrl = SettingsDialog.CUSTOM_SERVER_URL + "/api/v0";
private String accessToken = "";
private String refreshToken = "";
private String clientKey = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment