Skip to content

Error in code description #35685

@GerardFR

Description

@GerardFR

Description

At about the middle of the page, it says:

The MinimumAgeAuthorizationHandler is registered as a scoped IAuthorizationHandler service in the app's Program file:

But the code below registers the handler as a singleton (and so does the source code on GitHub).

So the text should be:

The MinimumAgeAuthorizationHandler is registered as a singleton IAuthorizationHandler service in the app's Program file:

Page URL

https://learn.microsoft.com/en-us/aspnet/core/security/authorization/iard?view=aspnetcore-9.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/security/authorization/iard.md

Document ID

f6195feb-aade-5e5a-dc6d-6a6b9bb6038e

Platform Id

501004e1-08aa-e864-ab2f-b2571449393e

Article author

@Rick-Anderson

Metadata

  • ID: f6195feb-aade-5e5a-dc6d-6a6b9bb6038e
  • PlatformId: 501004e1-08aa-e864-ab2f-b2571449393e
  • Service: aspnet-core
  • Sub-service: security

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions