diff --git a/runtime/dotnet/azurewebapp/Startup.cs b/runtime/dotnet/azurewebapp/Startup.cs index 3157c2e3a6..7cfb1bddb8 100644 --- a/runtime/dotnet/azurewebapp/Startup.cs +++ b/runtime/dotnet/azurewebapp/Startup.cs @@ -131,14 +131,7 @@ public void ConfigureServices(IServiceCollection services) services.AddSingleton(sp => (BotFrameworkHttpAdapter)sp.GetService()); // Register AuthConfiguration to enable custom claim validation for skills. - if (IsSkill(settings)) - { - services.AddSingleton(sp => new AuthenticationConfiguration { ClaimsValidator = new AllowedCallersClaimsValidator(settings.SkillConfiguration) }); - } - else - { - services.AddSingleton(sp => new AuthenticationConfiguration()); - } + services.AddSingleton(sp => new AuthenticationConfiguration { ClaimsValidator = new AllowedCallersClaimsValidator(settings.SkillConfiguration) }); // register components. ComponentRegistration.Add(new DialogsComponentRegistration());