tnc1997 / azure-app-configuration-emulator

Please note that Emulator for Azure App Configuration is unofficial and not endorsed by Microsoft.
MIT License
3 stars 3 forks source link

Update Postman instructions to support local debugging #41

Closed paulirwin closed 7 months ago

paulirwin commented 7 months ago

Describe the change This replaces pm.request.url.getRemote() with pm.request.url.getHost() in the Postman pre-request script. This matches the behavior fix in my other PR #38 to support local debugging, as the signed host header is sent as just localhost (rather than with the port) by the SDK.

This change has been tested to be backwards compatible with App Config running on a standard port, including live Azure App Config.

Current behavior The Postman pre-request script fails to authenticate when used with the emulator running directly on localhost on a non-standard port.

New behavior The pre-request script authenticates successfully.

Additional context N/A

paulirwin commented 7 months ago

Actually, disregard this, it should be part of #38 as it only works if that change is applied. I'll merge it into that PR.

paulirwin commented 7 months ago

... aaand actually disregard this entirely per the discussion on #38 😄