Skip to content

Commit

Permalink
rewrite eventhubs component
Browse files Browse the repository at this point in the history
Signed-off-by: Mukundan Sundararajan <msundar.ms@outlook.com>
  • Loading branch information
mukundansundar committed Jan 3, 2022
1 parent 5c9365b commit 8d1e3ec
Show file tree
Hide file tree
Showing 4 changed files with 699 additions and 76 deletions.
6 changes: 6 additions & 0 deletions authentication/azure/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ func NewEnvironmentSettings(resourceName string, values map[string]string) (Envi
es.Resource = azureEnv.ResourceIdentifiers.CosmosDB
case "servicebus":
es.Resource = azureEnv.ResourceIdentifiers.ServiceBus
case "eventhubs":
// Azure EventHubs (data plane)
// For documentation https://docs.microsoft.com/en-us/azure/event-hubs/authorize-access-azure-active-directory#overview
// The resource name to request a token is https://eventhubs.azure.net/, and it's the same for all clouds/tenants.
// Kafka connection does not factor in here.
es.Resource = "https://eventhubs.azure.net"
default:
return es, errors.New("invalid resource name: " + resourceName)
}
Expand Down

0 comments on commit 8d1e3ec

Please sign in to comment.