We don’t want to use credentials in the connectionstring any more so we are looking in to use a custom token provider. In the endpointConfiguration I add a CustomTokenProvider:
var tokenProvider = TokenProvider.CreateManagedServiceIdentityTokenProvider();
I added the application identity to bij service bus credentials.
But i get the following error:
[11/03/2020 11:40:45] A host error has occurred during startup operation ‘GUID’.
[11/03/2020 11:40:45] Microsoft.Azure.ServiceBus: Value cannot be null.
[11/03/2020 11:40:45] Parameter name: ServiceBusConnection doesn’t have a valid token provider.
Is there something that i miss? Or is there more documentation how to use the CustomTokenProvider?
Thank you in advance