diff --git a/.env b/.env index b8fea6a..faec5c4 100644 --- a/.env +++ b/.env @@ -1,13 +1,7 @@ -EO_API_USERNAME = apiclient -EO_API_PASSWORD = apiclient12345 -EO_API_SCOPE = oidc tags context_entitlements content_entitlements em_api_access -EO_API_CLIENT_ID = default -EO_API_CLIENT_SECRET = asd -EO_API_ACCESS_TOKEN_URL = https://em5.verint.training/oidc-token-service/default/token -EO_API_UDG_URL = unified-data-gateway/default/graphql - -JWT_SECRET = 12356789 PORT = 3000 +## Store type 'local-storage' or 'redis' supported STORE = local-storage + +# use if STORE = redis REDIS_URL = redis://localhost:6379 \ No newline at end of file diff --git a/src/api/routes/config.js b/src/api/routes/config.js index 31ddbde..1216852 100644 --- a/src/api/routes/config.js +++ b/src/api/routes/config.js @@ -3,17 +3,7 @@ const router = Router(); router.get("/", (req, res) => { const config = { - "auth:": { - username: process.env.EO_API_USERNAME, - password: process.env.EO_API_PASSWORD ? "*******" : undefined, - scope: process.env.EO_API_SCOPE, - client_id: process.env.EO_API_CLIENT_ID, - client_secret: process.env.EO_API_SECRET ? "*******" : undefined, - }, - endpoints: { - token: process.env.EO_API_ACCESS_TOKEN_URL, - udg: process.env.EO_API_UDG_URL, - }, + env: process.env, }; res.send(config); });