2022-12-19 11:01:40 -05:00
|
|
|
import { SignInIdentifier, demoAppApplicationId } from '@logto/schemas';
|
2022-12-12 08:15:09 -05:00
|
|
|
import { assertEnv } from '@silverhand/essentials';
|
2022-06-16 00:00:01 -05:00
|
|
|
|
2022-12-12 08:15:09 -05:00
|
|
|
export const logtoUrl = assertEnv('INTEGRATION_TESTS_LOGTO_URL');
|
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}`;
|
2022-07-29 04:48:23 -05:00
|
|
|
export const adminConsoleRedirectUri = `${logtoUrl}/console/callback`;
|
2022-12-01 20:52:01 -05:00
|
|
|
|
|
|
|
export const signUpIdentifiers = {
|
|
|
|
username: [SignInIdentifier.Username],
|
|
|
|
email: [SignInIdentifier.Email],
|
|
|
|
sms: [SignInIdentifier.Sms],
|
|
|
|
emailOrSms: [SignInIdentifier.Email, SignInIdentifier.Sms],
|
|
|
|
none: [],
|
|
|
|
};
|