From 55dc9291a494101f8c36ed6c73e1427994a0c542 Mon Sep 17 00:00:00 2001 From: Brandon Ros Date: Tue, 19 Nov 2024 12:20:42 -0500 Subject: [PATCH 1/3] bump Azure.identity --- .../ClrPro.AzureFX.LocalCredentialBridge.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClrPro.AzureFX.LocalCredentialBridge/ClrPro.AzureFX.LocalCredentialBridge.csproj b/src/ClrPro.AzureFX.LocalCredentialBridge/ClrPro.AzureFX.LocalCredentialBridge.csproj index 251d11a..2cdcd4d 100644 --- a/src/ClrPro.AzureFX.LocalCredentialBridge/ClrPro.AzureFX.LocalCredentialBridge.csproj +++ b/src/ClrPro.AzureFX.LocalCredentialBridge/ClrPro.AzureFX.LocalCredentialBridge.csproj @@ -17,7 +17,7 @@ - + From a01b79a454c762e02aa527df0a3e6b11c2d559e0 Mon Sep 17 00:00:00 2001 From: Brandon Ros Date: Tue, 19 Nov 2024 09:24:16 -0800 Subject: [PATCH 2/3] change laucnh settings --- .../Properties/launchSettings.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ClrPro.AzureFX.LocalCredentialBridge/Properties/launchSettings.json b/src/ClrPro.AzureFX.LocalCredentialBridge/Properties/launchSettings.json index d5e65d7..ac62f48 100644 --- a/src/ClrPro.AzureFX.LocalCredentialBridge/Properties/launchSettings.json +++ b/src/ClrPro.AzureFX.LocalCredentialBridge/Properties/launchSettings.json @@ -4,7 +4,7 @@ "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { - "applicationUrl": "http://localhost:33549", + "applicationUrl": "http://localhost:40342", "sslPort": 0 } }, @@ -14,9 +14,10 @@ "dotnetRunMessages": true, "launchBrowser": true, "launchUrl": "swagger", - "applicationUrl": "http://localhost:5151", + "applicationUrl": "http://127.0.0.1:40342", "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" + "ASPNETCORE_ENVIRONMENT": "Development", + "ASPNETCORE_URLS": "http://127.0.0.1:40342" } }, "IIS Express": { From cb9f62e0df35347cea6e7e8c56068ac7f8d8d051 Mon Sep 17 00:00:00 2001 From: Brandon Ros Date: Tue, 19 Nov 2024 09:51:09 -0800 Subject: [PATCH 3/3] needs to end in .key --- .../Controllers/TokensBridgetController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ClrPro.AzureFX.LocalCredentialBridge/Controllers/TokensBridgetController.cs b/src/ClrPro.AzureFX.LocalCredentialBridge/Controllers/TokensBridgetController.cs index dd03a89..26f2e88 100644 --- a/src/ClrPro.AzureFX.LocalCredentialBridge/Controllers/TokensBridgetController.cs +++ b/src/ClrPro.AzureFX.LocalCredentialBridge/Controllers/TokensBridgetController.cs @@ -70,7 +70,7 @@ public async Task Get(string resource) var authHeader = Request.Headers.Authorization; if (string.IsNullOrWhiteSpace(authHeader)) { - var fileName = Guid.NewGuid().ToString(); + var fileName = $"{Guid.NewGuid().ToString()}.key"; var localFileName = Path.Combine(localPath, fileName); var remoteFileName = Path.Combine(options.RemoteTokensPath!, fileName);