Sign up doesnt work with multiple enpoints!
UBT-FJ opened this issue · 1 comments
Hello,
I was trying to test the mobile app with multiple endpoints and I cant get the sign up to work!
The login works but the sign up it just hangs when I try to sign up! I also see the endpoints and the qrcode works as expected.
With the default one endpoint it works but not with two!
`import { EndpointCloud } from '../types/Tenant';
export default class Configuration {
public static readonly SERVER_URL_PREFIX = 'https://rest.';
public static readonly URL_PREFIX = 'https://';
public static readonly FIRST_REST_ENDPOINT_PROD = ${Configuration.SERVER_URL_PREFIX}first_domain
;
public static readonly AWS_REST_ENDPOINT_QA = 'https://first_domain';
public static readonly SECOND_REST_ENDPOINT_PROD = ${Configuration.SERVER_URL_PREFIX}second_domain
;
public static readonly CAPTCHA_SITE_KEY = 'captchakey';
public static readonly FIRST_CLOUD_ID = 'first';
public static readonly SECOND_CLOUD_ID = 'second';
public static readonly ENDPOINT_CLOUDS: EndpointCloud[] = [
{ id: Configuration.FIRST_CLOUD_ID, name: '1st endpoint', endpoint: Configuration.FIRST_REST_ENDPOINT_PROD },
{ id: Configuration.SECOND_CLOUD_ID, name: '2nd endpoint', endpoint: Configuration.SECOND_REST_ENDPOINT_PROD }
];
public static isServerLocalePreferred = true;
public static DEV_ENDPOINT_CLOUDS = [
{
id: '127.0.0.1:8080',
name: 'localhost',
endpoint: 'http://localhost:8020'
},
{
id: '10.0.2.2:8080',
name: 'android-local:8080',
endpoint: 'http://10.0.2.2:8080'
},
{
id: 'kubernetes',
name: 'QA',
endpoint: Configuration.AWS_REST_ENDPOINT_QA
}
];
public static readonly DEVELOPMENT_ENDPOINT_CLOUDS: EndpointCloud[] = [
...Configuration.ENDPOINT_CLOUDS,
...Configuration.DEV_ENDPOINT_CLOUDS
];
public static getEndpoints(): EndpointCloud[] {
if (DEV) {
return Configuration.DEVELOPMENT_ENDPOINT_CLOUDS;
} else {
return Configuration.ENDPOINT_CLOUDS;
}
}
}`
found the solution in
src/provider/CentralServerProvider.tsx
added this
private captchaBaseUrl: string = Configuration.FIRST_REST_ENDPOINT_PROD || Configuration.SECOND_REST_ENDPOINT_PROD;