2022-12-19 11:01:40 -05:00
|
|
|
import { SignInIdentifier, demoAppApplicationId } from '@logto/schemas';
|
2023-02-05 23:14:05 -05:00
|
|
|
import { getEnv } from '@silverhand/essentials';
|
2022-06-16 00:00:01 -05:00
|
|
|
|
2023-02-05 23:14:05 -05:00
|
|
|
export const logtoUrl = getEnv('INTEGRATION_TESTS_LOGTO_URL', 'http://localhost:3001');
|
|
|
|
export const logtoConsoleUrl = getEnv(
|
|
|
|
'INTEGRATION_TESTS_LOGTO_CONSOLE_URL',
|
|
|
|
'http://localhost:3002'
|
|
|
|
);
|
2022-06-16 00:00:01 -05:00
|
|
|
|
|
|
|
export const discoveryUrl = `${logtoUrl}/oidc/.well-known/openid-configuration`;
|
|
|
|
|
2022-07-21 02:32:05 -05:00
|
|
|
export const demoAppRedirectUri = `${logtoUrl}/${demoAppApplicationId}`;
|
2023-02-05 23:14:05 -05:00
|
|
|
export const adminConsoleRedirectUri = `${logtoConsoleUrl}/console/callback`;
|
2022-12-01 20:52:01 -05:00
|
|
|
|
|
|
|
export const signUpIdentifiers = {
|
|
|
|
username: [SignInIdentifier.Username],
|
|
|
|
email: [SignInIdentifier.Email],
|
2023-01-06 04:43:28 -05:00
|
|
|
sms: [SignInIdentifier.Phone],
|
|
|
|
emailOrSms: [SignInIdentifier.Email, SignInIdentifier.Phone],
|
2022-12-01 20:52:01 -05:00
|
|
|
none: [],
|
|
|
|
};
|