Update samples.md (#13813)
parent
bd5337cc9e
commit
3dd7f41d1e
|
@ -10,6 +10,29 @@ uid: security/authentication/samples
|
|||
|
||||
By [Rick Anderson](https://twitter.com/RickAndMSFT)
|
||||
|
||||
::: moniker range=">= aspnetcore-3.0"
|
||||
|
||||
The [ASP.NET Core repository](https://github.com/aspnet/AspNetCore) contains the following authentication samples in the *AspNetCore/src/Security/samples* folder:
|
||||
|
||||
* [Claims transformation](https://github.com/aspnet/AspNetCore/tree/release/2.2/src/Security/samples/ClaimsTransformation)
|
||||
* [Cookie authentication](https://github.com/aspnet/AspNetCore/tree/release/2.2/src/Security/samples/Cookies)
|
||||
* [Custom policy provider - IAuthorizationPolicyProvider](https://github.com/aspnet/AspNetCore/tree/release/2.2/src/Security/samples/CustomPolicyProvider)
|
||||
* [Dynamic authentication schemes and options](https://github.com/aspnet/AspNetCore/tree/release/2.2/src/Security/samples/DynamicSchemes)
|
||||
* [External claims](https://github.com/aspnet/AspNetCore/tree/release/2.2/src/Security/samples/Identity.ExternalClaims)
|
||||
* [Selecting between cookie and another authentication scheme based on the request](https://github.com/aspnet/AspNetCore/tree/release/2.2/src/Security/samples/PathSchemeSelection)
|
||||
* [Restricts access to static files](https://github.com/aspnet/AspNetCore/tree/release/2.2/src/Security/samples/StaticFilesAuth)
|
||||
|
||||
## Run the samples
|
||||
|
||||
* Select a [branch](https://github.com/aspnet/AspNetCore). For example, `Tag:v3.0.0`
|
||||
* Clone or download the [ASP.NET Core repository](https://github.com/aspnet/AspNetCore).
|
||||
* Verify you have installed the [.NET Core SDK](https://www.microsoft.com/net/download/all) version matching the clone of the ASP.NET Core repository.
|
||||
* Navigate to a sample in *AspNetCore/src/Security/samples* and run the sample with `dotnet run`.
|
||||
|
||||
::: moniker-end
|
||||
|
||||
::: moniker range="< aspnetcore-3.0"
|
||||
|
||||
The [ASP.NET Core repository](https://github.com/aspnet/AspNetCore) contains the following authentication samples in the *AspNetCore/src/Security/samples* folder:
|
||||
|
||||
* [Claims transformation](https://github.com/aspnet/AspNetCore/tree/release/2.2/src/Security/samples/ClaimsTransformation)
|
||||
|
@ -26,3 +49,5 @@ The [ASP.NET Core repository](https://github.com/aspnet/AspNetCore) contains the
|
|||
* Clone or download the [ASP.NET Core repository](https://github.com/aspnet/AspNetCore).
|
||||
* Verify you have installed the [.NET Core SDK](https://www.microsoft.com/net/download/all) version matching the clone of the ASP.NET Core repository.
|
||||
* Navigate to a sample in *AspNetCore/src/Security/samples* and run the sample with `dotnet run`.
|
||||
|
||||
::: moniker-end
|
||||
|
|
Loading…
Reference in New Issue