This article demonstrates how to run MID locally
...
h. This will need to be done for: DigitalSignature API, MID API, MID Website, MIUA Website, MIUS API and MIUS WinForm Legacy. Note: For MIUA Website (External) once the secrets copied, make sure to update your email address in the secrets and also uncomment lines For Dev properties and comment out the Prod once.
i. MIUS WinForm Legacy is VB and does things a little different. Instead of a user secret file, we have a secureconfig\secrets.config:
...
Add your user account into GC Notify
Add your user account into DocuSign
Once in visual studio, right click on MIC_CAM solution and click "Configure StartUp Project…"
...
Rebuild the solution to check if there is any package missing
Click Start and two application pages will open
Need to check the latest keyvault in user secrets. need to check if the active config is for DEV not PROD
...
Need a user id in MTOA.
By default once user call api https://wwwappstestext.tc.gc.ca/Saf-Sec-Sur/13/MTAPI/api/v1/users/emails?email=user.name%40tc.gc.ca will return empty if he doesn’t register.
...
That will causes problem once user tries to change the status of a service request.
Error logs like below:
Sending HTTP request POST https://wwwappstestext.tc.gc.ca/Saf-Sec-Sur/13/MTAPI-INT/api/v1/servicerequests/96473/updatestatus?userId=-9999&serviceRequestStatus=OnHold
2024-02-29T15:49:04.221348929Z [40m[32minfo[39m[22m[49m: System.Net.Http.HttpClient.mtoaApiService.ClientHandler[101]
2024-02-29T15:49:04.221392730Z Received HTTP response headers after 179.0063ms - 403
2024-02-29T15:49:04.221398130Z [40m[32minfo[39m[22m[49m: System.Net.Http.HttpClient.mtoaApiService.LogicalHandler[101]
2024-02-29T15:49:04.221402430Z End processing HTTP request after 254.3198ms - 403
2024-02-29T15:49:04.221922135Z [41m[30mfail[39m[22m[49m: MTOAAPIService.Api.Controllers.ServiceRequestApiController[0]
2024-02-29T15:49:04.221945136Z HttpStatusCode.Forbidden
2024-02-29T15:49:04.238087304Z [15:49:04 ERR] HttpStatusCode.Forbidden
2024-02-29T15:49:04.238112404Z 2024-02-29T15:49:04.2215524+00:00 | [EROR] | | 2716246415af | 28 | | | | | HttpStatusCode.Forbidden
2024-02-29T15:49:04.238401907Z [41m[30mfail[39m[22m[49m: MTOAAPIService.Api.Controllers.ServiceRequestApiController[0]
2024-02-29T15:49:04.238418708Z HttpStatusCode.Forbidden
2024-02-29T15:49:04.254590076Z [15:49:04 ERR] HttpStatusCode.Forbidden
The userid will equal to -9999 if you don’t have registered.
To fix it, you need to request for the registration by intake form https://forms.office.com/pages/responsepage.aspx?id=qf8IILLJl02a2UrOJThr57DEY0tN-EBEqZzzVbSn-gpUQU9BTlBQWUUyRklGVEhBSERQTk9XTzNUSS4u