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