From 63eec82e466718071f09d21564044f0235c609e8 Mon Sep 17 00:00:00 2001 From: Alexander Hafstad Date: Thu, 19 Dec 2024 10:59:32 +0100 Subject: [PATCH] docs(eo): add guide for testing MitID in local environment --- ...tegration.md => continuous-integration.md} | 0 docs/eo/testing-mitid.md | 67 +++++++++++++++++++ 2 files changed, 67 insertions(+) rename docs/eo/{continues-integration.md => continuous-integration.md} (100%) create mode 100644 docs/eo/testing-mitid.md diff --git a/docs/eo/continues-integration.md b/docs/eo/continuous-integration.md similarity index 100% rename from docs/eo/continues-integration.md rename to docs/eo/continuous-integration.md diff --git a/docs/eo/testing-mitid.md b/docs/eo/testing-mitid.md new file mode 100644 index 0000000000..0eb125b9e8 --- /dev/null +++ b/docs/eo/testing-mitid.md @@ -0,0 +1,67 @@ +# Testing MitID in Local Environment + +## Overview + +MitID functionality is exclusively available in the production environment. To test MitID features, you'll need to configure your local environment to connect to production instead of the demo environment. + +## Prerequisites + +- Local development environment setup +- Access to production configuration files +- Web browser with capability to disable CORS +- MitID Erhverv user + +## Configuration Steps + +### 1. Configure API Settings + +Update your local API configuration file with production values: + +**File location:** + +```bash +libs/eo/shared/assets/src/assets/configuration/eo-azure-b2c-settings.local.json +``` + +**Source of production values:** + +- Reference the production API configuration at: + [API environment (prod)](https://energytrackandtrace.dk/assets/configuration/eo-api-environment.json) + +### 2. Configure B2C Settings + +Update your local B2C configuration file with production values: + +**File location:** + +```bash +libs/eo/shared/assets/src/assets/configuration/eo-azure-b2c-settings.local.json +``` + +**Source of production values:** + +- Reference the production B2C configuration at: + [B2C Settings (prod)](https://energytrackandtrace.dk/assets/configuration/eo-azure-b2c-settings.json) + +### 3. Start Application + +1. If the application is running, stop it +2. Start the application with the new configuration + +### 4. Browser Setup + +Launch your browser with CORS disabled to allow local testing against production endpoints. + +## Important Notes + +- Always be cautious when testing against production environments +- Ensure you don't perform any operations that could affect production data +- Remember to re-enable CORS when done testing + +## Troubleshooting + +If you encounter connection issues: + +- Verify all configuration values are correctly copied +- Ensure your browser has CORS disabled +- Check that all required services are running