2022-03-02 21:06:04 +00:00
|
|
|
import { fetchPrivateKey, fetchPublicKey } from 'utils';
|
|
|
|
|
|
2025-12-05 17:18:08 +00:00
|
|
|
const appUrl =
|
|
|
|
|
process.env.APP_URL ||
|
|
|
|
|
`https://${process.env.VERCEL_BRANCH_URL}` ||
|
|
|
|
|
`https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}` ||
|
|
|
|
|
'http://localhost:4000';
|
2022-02-23 23:30:02 +00:00
|
|
|
const entityId = process.env.ENTITY_ID || 'https://saml.example.com/entityid';
|
2022-03-02 21:06:04 +00:00
|
|
|
const privateKey = fetchPrivateKey();
|
|
|
|
|
const publicKey = fetchPublicKey();
|
2022-02-17 06:57:50 +00:00
|
|
|
|
2022-02-22 06:05:21 +00:00
|
|
|
const config = {
|
2022-02-18 04:07:27 +00:00
|
|
|
appUrl,
|
|
|
|
|
entityId,
|
2022-03-02 21:06:04 +00:00
|
|
|
privateKey,
|
|
|
|
|
publicKey,
|
2022-02-22 05:36:06 +00:00
|
|
|
};
|
2022-02-22 06:05:21 +00:00
|
|
|
|
|
|
|
|
export default config;
|