durabletask-netherite/samples/TokenCredentialDTFx
Sebastian Burckhardt d00a2c60e2
increase major version (2.0.0) and update packages (#425)
* update to 2.0.0, remove netcoreapp2.2 target, update all package versions

* fix unit test that was broken because of xunit API change

* fix API change for blob bindings in PerformanceTests

* back out two of the major version changes

* revise solution
2024-10-02 14:24:57 -07:00
..
HelloCities.cs Add support for authentication using an Azure.Core.TokenCredential (#197) 2022-11-09 07:44:29 -08:00
Program.cs update README and samples to latest veersion (1.4.2) of Netherite, update other dependencies in the samples, and use consistent taskhub names for all samples (#355) 2024-03-05 09:26:40 -08:00
README.md Add support for authentication using an Azure.Core.TokenCredential (#197) 2022-11-09 07:44:29 -08:00
TokenCredentialDTFx.csproj increase major version (2.0.0) and update packages (#425) 2024-10-02 14:24:57 -07:00

README.md

Token Credential Sample

This sample demonstrates how to configure a connection resolver when using Netherite as the orchestration provider for a Durable Task project.

The connection resolver allows you to supply a Azure Token Credential instead of a connection string, which means you can use identity-based authentication.

For this sample, we use the default Azure Identity credential as provided by the Azure.Identity package.

Configuration Prerequisites

Before running this sample, you must

  1. Create a new Azure Storage account, or reuse an existing one
  2. Create a new Azure Event Hubs namespace, or reuse an existing one (that is not currently in use)
  3. Make sure you have Storage Blob Data Contributor and Storage Table Data Contributor permissions for the storage account.
  4. Make sure you have Azure Event Hubs Data Owner permission for the event hubs namespace.
  5. Set AccountName to contain the name of the storage account, using an environment variable or a function app configuration setting,
  6. Set NamespaceName to contain the name of the Event Hubs namespace, using an environment variable or a function app configuration setting.