You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/security/authorization/policies.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
1
---
2
2
title: Policy-based authorization in ASP.NET Core
3
+
ai-usage: ai-assisted
3
4
author: wadepickett
4
5
description: Learn how to create and use authorization policy handlers for enforcing authorization requirements in an ASP.NET Core app.
5
6
monikerRange: '>= aspnetcore-3.1'
6
7
ms.author: wpickett
7
8
ms.custom: mvc
8
-
ms.date: 1/5/2023
9
+
ms.date: 02/17/2026
9
10
uid: security/authorization/policies
10
11
---
11
12
# Policy-based authorization in ASP.NET Core
@@ -28,7 +29,7 @@ The primary service that determines if authorization is successful is <xref:Micr
28
29
29
30
The preceding code highlights the two methods of the [IAuthorizationService](https://github.com/dotnet/AspNetCore/blob/v2.2.4/src/Security/Authorization/Core/src/IAuthorizationService.cs).
30
31
31
-
<xref:Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> is a marker service with no methods, and the mechanism for tracking whether authorization is successful.
32
+
<xref:Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> is a marker interface with no methods, and the mechanism for tracking whether authorization is successful.
32
33
33
34
Each <xref:Microsoft.AspNetCore.Authorization.IAuthorizationHandler> is responsible for checking if requirements are met:
Copy file name to clipboardExpand all lines: aspnetcore/security/authorization/policies/includes/policies5.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The primary service that determines if authorization is successful is <xref:Micr
16
16
17
17
The preceding code highlights the two methods of the [IAuthorizationService](https://github.com/dotnet/AspNetCore/blob/v2.2.4/src/Security/Authorization/Core/src/IAuthorizationService.cs).
18
18
19
-
<xref:Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> is a marker service with no methods, and the mechanism for tracking whether authorization is successful.
19
+
<xref:Microsoft.AspNetCore.Authorization.IAuthorizationRequirement> is a marker interface with no methods, and the mechanism for tracking whether authorization is successful.
20
20
21
21
Each <xref:Microsoft.AspNetCore.Authorization.IAuthorizationHandler> is responsible for checking if requirements are met:
0 commit comments