dodyg / dodyg/practical-aspnetcore

Investigate AddController options

Open
#255 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
10.4k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

e.g.
```
services.AddControllers(config =>
{
// using Microsoft.AspNetCore.Mvc.Authorization;
// using Microsoft.AspNetCore.Authorization;
var policy = new AuthorizationPolicyBuilder()
.RequireAuthenticatedUser()
.Build();
config.Filters.Add(new AuthorizeFilter(policy));
});```

Contributor guide

Open the contributing guide

Research direction

Start by searching the samples for services.AddControllers and compare how controller options are currently demonstrated. Determine which AddControllers option or authorization configuration this issue is asking to document, then update the relevant sample and verify that it builds.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
authorization, backend
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.