diff --git a/README.md b/README.md new file mode 100644 index 0000000..0927f46 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# Local Credentials Bridge + +## Using as a Dotnet Tool + +Luckily, WebApis can also be packaged as dotnet tools and ran. To do this simple use the following commands from the solution root. + +`dotnet pack` + +`dotnet tool update -g --add-source ./pack ClrPro.AzureFX.LocalCredentialBridge` + +Then run with the following command: + +`az-credentials-bridge` \ No newline at end of file diff --git a/src/ClrPro.AzureFX.LocalCredentialBridge/ClrPro.AzureFX.LocalCredentialBridge.csproj b/src/ClrPro.AzureFX.LocalCredentialBridge/ClrPro.AzureFX.LocalCredentialBridge.csproj index 251d11a..6573937 100644 --- a/src/ClrPro.AzureFX.LocalCredentialBridge/ClrPro.AzureFX.LocalCredentialBridge.csproj +++ b/src/ClrPro.AzureFX.LocalCredentialBridge/ClrPro.AzureFX.LocalCredentialBridge.csproj @@ -5,6 +5,11 @@ enable enable true + + true + true + az-credentials-bridge + ../../pack diff --git a/src/ClrPro.AzureFX.LocalCredentialBridge/Program.cs b/src/ClrPro.AzureFX.LocalCredentialBridge/Program.cs index f29ed77..332b45f 100644 --- a/src/ClrPro.AzureFX.LocalCredentialBridge/Program.cs +++ b/src/ClrPro.AzureFX.LocalCredentialBridge/Program.cs @@ -12,6 +12,8 @@ var builder = WebApplication.CreateBuilder(args); +builder.WebHost.UseUrls("http://+:40342"); + builder.Services.AddMemoryCache(); // Add services to the container.