From 4b30de1c37140305d75d562fd8894e9404f80cda Mon Sep 17 00:00:00 2001 From: James Montemagno Date: Sun, 6 Nov 2022 15:43:22 -0800 Subject: [PATCH] Apply suggestions from code review --- src/Services/Podcasts/Podcast.MinimalAPI/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs b/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs index 559e8c7..6bd30fb 100644 --- a/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs +++ b/src/Services/Podcasts/Podcast.MinimalAPI/Program.cs @@ -21,7 +21,9 @@ builder.Services.AddSingleton(new QueueClient(queueConnectionString, "feed-queue builder.Services.AddHttpClient(); // Authentication and authorization-related services +// Comment back in if testing authentication // builder.Services.AddMicrosoftIdentityWebApiAuthentication(builder.Configuration); + builder.Services.AddAuthorizationBuilder().AddPolicy("modify_feeds", policy => policy.RequireScope("API.Access")); // OpenAPI and versioning-related services