Skip to content

Commit

Permalink
docs: update README with more authorization
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Kops committed Jul 30, 2024
1 parent e622e7a commit 76b682a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,8 @@ If all path-items (operations) under a given path all have x-authentication-requ

Authentication-Schemes and Authorize-Roles defined at path/controller level is taken into consideration when generating [Authorize] attributes for path-item/action/method level.

If no path-items (operations) under a given path have the x-authentication-required extension set, then no attributes will be generated for that given path/controller. If you want to force e.g [Authorize] or [AllowAnonymous], set the x-authentication-required extension to `true` or `false` respectively.

### Example

> NOTE: Tags, parameters, responses, request-bodies, schemas etc. are removed for brevity, so the references in spec below are not valid - The specification is only illustrating the various places the 3 new extension tags can be applied.
Expand Down

0 comments on commit 76b682a

Please sign in to comment.