mocksaml/lib/env.ts

18 lines
419 B
TypeScript
Raw Normal View History

import { fetchPrivateKey, fetchPublicKey } from 'utils';
2022-02-18 04:07:27 +00:00
const appUrl = process.env.APP_URL || 'http://localhost:4000';
const entityId = process.env.ENTITY_ID || 'https://saml.example.com/entityid';
2022-02-21 05:52:12 +00:00
const ssoUrl = `${appUrl}/api/saml/sso`;
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,
ssoUrl,
privateKey,
publicKey,
2022-02-22 05:36:06 +00:00
};
2022-02-22 06:05:21 +00:00
export default config;