I'm using OpenID authentication. When I have several app services from different regions inside Traffic Manager, I get above error regarding the state of authentication. It occures even when I use this code :
private async Task ConfigureDataProtection(IServiceCollection services)
{
var container = "container";
var relativePath = "folder/keys.xml";
var connectionString = Configuration.GetSection("ConnectionStrings:AzureConnectionString").Value;
var storageAccount = CloudStorageAccount.Parse(connectionString);
await EnsureContainerExists(storageAccount, container);
services.AddDataProtection().PersistKeysToAzureBlobStorage(storageAccount, relativePath);
}
When I host horizontally scaled app services from one region, everything works fine. I'm using Azure. Why can this issue occur?