Skip to content

Commit c18b27f

Browse files
authored
Fix link to sample on GitHub (#17922)
* Fix link to sample on GitHub Fixes #17918 * Use samples in v3.1.3 branch instead of Master
1 parent 5f2c16d commit c18b27f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aspnetcore/security/authorization/iauthorizationpolicyprovider.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Examples of scenarios where a custom [IAuthorizationPolicyProvider](/dotnet/api/
1919
* Using a large range of policies (for different room numbers or ages, for example), so it doesn't make sense to add each individual authorization policy with an `AuthorizationOptions.AddPolicy` call.
2020
* Creating policies at runtime based on information in an external data source (like a database) or determining authorization requirements dynamically through another mechanism.
2121

22-
[View or download sample code](https://github.com/dotnet/AspNetCore/tree/release/2.2/src/Security/samples/CustomPolicyProvider) from the [AspNetCore GitHub repository](https://github.com/dotnet/AspNetCore). Download the dotnet/AspNetCore repository ZIP file. Unzip the file. Navigate to the *src/Security/samples/CustomPolicyProvider* project folder.
22+
[View or download sample code](https://github.com/dotnet/aspnetcore/tree/v3.1.3/src/Security/samples/CustomPolicyProvider) from the [AspNetCore GitHub repository](https://github.com/dotnet/AspNetCore). Download the dotnet/AspNetCore repository ZIP file. Unzip the file. Navigate to the *src/Security/samples/CustomPolicyProvider* project folder.
2323

2424
## Customize policy retrieval
2525

@@ -178,4 +178,4 @@ To use custom policies from an `IAuthorizationPolicyProvider`, you must:
178178
services.AddSingleton<IAuthorizationPolicyProvider, MinimumAgePolicyProvider>();
179179
```
180180

181-
A complete custom `IAuthorizationPolicyProvider` sample is available in the [dotnet/aspnetcore GitHub repository](https://github.com/dotnet/aspnetcore/tree/ea555458dc61e04314598c25b3ab8c56362a5123/src/Security/samples/CustomPolicyProvider).
181+
A complete custom `IAuthorizationPolicyProvider` sample is available in the [dotnet/aspnetcore GitHub repository](https://github.com/dotnet/aspnetcore/tree/v3.1.3/src/Security/samples/CustomPolicyProvider).

0 commit comments

Comments
 (0)