Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<GenerateDocumentationFile>true</GenerateDocumentationFile>

<IsPackable>true</IsPackable>
<PackAsTool>true</PackAsTool>
<ToolCommandName>az-credentials-bridge</ToolCommandName>
<PackageOutputPath>../../pack</PackageOutputPath>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/ClrPro.AzureFX.LocalCredentialBridge/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

var builder = WebApplication.CreateBuilder(args);

builder.WebHost.UseUrls("http://+:40342");

builder.Services.AddMemoryCache();

// Add services to the container.
Expand Down