Apply suggestions from code review

pull/173/head
James Montemagno 2022-11-06 15:43:22 -08:00 committed by GitHub
parent 8bc8737367
commit 4b30de1c37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -21,7 +21,9 @@ builder.Services.AddSingleton(new QueueClient(queueConnectionString, "feed-queue
builder.Services.AddHttpClient<IFeedClient, FeedClient>();
// 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