rm links to auth samples /2 (#32263)
* rm links to auth samples * fix * fix * Update aspnetcore/toc.yml * fix * fixpull/32294/head
parent
7436ff0422
commit
28dbecf86d
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
{
|
||||
"redirections": [
|
||||
{
|
||||
"source_path": "aspnetcore/security/authentication/samples.md",
|
||||
"redirect_url": "/aspnet/core/security/authorization/introduction",
|
||||
"redirect_document_id": false
|
||||
},
|
||||
{
|
||||
"source_path": "aspnetcore/fundamentals/aot/request-delegate-generator/rgd_ids.md",
|
||||
"redirect_url": "/aspnet/core/fundamentals/aot/request-delegate-generator/rdg_ids",
|
||||
|
|
|
@ -32,7 +32,7 @@ app.MapGrpcService<GreeterService>();
|
|||
> [!NOTE]
|
||||
> The order in which you register the ASP.NET Core authentication middleware matters. Always call `UseAuthentication` and `UseAuthorization` after `UseRouting` and before `UseEndpoints`.
|
||||
|
||||
The authentication mechanism your app uses during a call needs to be configured. Authentication configuration is added in `Program.cs` and will be different depending upon the authentication mechanism your app uses. For examples of how to secure ASP.NET Core apps, see [Authentication samples](xref:security/authentication/samples).
|
||||
The authentication mechanism your app uses during a call needs to be configured. Authentication configuration is added in `Program.cs` and will be different depending upon the authentication mechanism your app uses.
|
||||
|
||||
Once authentication has been setup, the user can be accessed in a gRPC service methods via the `ServerCallContext`.
|
||||
|
||||
|
@ -301,7 +301,7 @@ public void Configure(IApplicationBuilder app)
|
|||
> [!NOTE]
|
||||
> The order in which you register the ASP.NET Core authentication middleware matters. Always call `UseAuthentication` and `UseAuthorization` after `UseRouting` and before `UseEndpoints`.
|
||||
|
||||
The authentication mechanism your app uses during a call needs to be configured. Authentication configuration is added in `Startup.ConfigureServices` and will be different depending upon the authentication mechanism your app uses. For examples of how to secure ASP.NET Core apps, see [Authentication samples](xref:security/authentication/samples).
|
||||
The authentication mechanism your app uses during a call needs to be configured. Authentication configuration is added in `Startup.ConfigureServices` and will be different depending upon the authentication mechanism your app uses.
|
||||
|
||||
Once authentication has been setup, the user can be accessed in a gRPC service methods via the `ServerCallContext`.
|
||||
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
title: Authentication samples for ASP.NET Core
|
||||
author: rick-anderson
|
||||
description: Provides links to the authentication samples in the ASP.NET Core repository.
|
||||
ms.author: riande
|
||||
ms.date: 02/21/2021
|
||||
uid: security/authentication/samples
|
||||
---
|
||||
# Authentication samples for ASP.NET Core
|
||||
|
||||
By [Rick Anderson](https://twitter.com/RickAndMSFT)
|
||||
|
||||
The [ASP.NET Core repository](https://github.com/dotnet/aspnetcore) contains the following authentication samples (`main` branch):
|
||||
|
||||
* [Claims transformation](https://github.com/dotnet/aspnetcore/tree/main/src/Security/samples/ClaimsTransformation)
|
||||
* [Cookie authentication](https://github.com/dotnet/aspnetcore/tree/main/src/Security/samples/Cookies)
|
||||
* [Custom authorization failure response](https://github.com/dotnet/aspnetcore/tree/main/src/Security/samples/CustomAuthorizationFailureResponse)
|
||||
* [Custom policy provider - IAuthorizationPolicyProvider](https://github.com/dotnet/aspnetcore/tree/main/src/Security/samples/CustomPolicyProvider)
|
||||
* [Dynamic authentication schemes and options](https://github.com/dotnet/aspnetcore/tree/main/src/Security/samples/DynamicSchemes)
|
||||
* [External claims](https://github.com/dotnet/aspnetcore/tree/main/src/Security/samples/Identity.ExternalClaims)
|
||||
* [Selecting between cookie and another authentication scheme based on the request](https://github.com/dotnet/aspnetcore/tree/main/src/Security/samples/PathSchemeSelection)
|
||||
* [Restricts access to static files](https://github.com/dotnet/aspnetcore/tree/main/src/Security/samples/StaticFilesAuth)
|
||||
|
||||
## Obtain and run the samples
|
||||
|
||||
The sample links provided in this article provide samples for the upcoming release of ASP.NET Core. To obtain a sample for the current release or a prior release, perform the following steps:
|
||||
|
||||
* Select the release branch of the [ASP.NET Core repository](https://github.com/dotnet/aspnetcore). For example, the `release/5.0` branch contains the samples for the ASP.NET Core 5.0 release.
|
||||
* Clone or download the ASP.NET Core repository.
|
||||
* On your local system, verify installation of the [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core) version matching the clone of the ASP.NET Core repository.
|
||||
* Navigate to a sample in `aspnetcore/src/Security/samples` folder and run the sample with the [`dotnet run` command](/dotnet/core/tools/dotnet-run).
|
|
@ -1529,8 +1529,6 @@ items:
|
|||
uid: security/authentication/jwt
|
||||
- name: Map, customize, and transform claims
|
||||
uid: security/authentication/claims
|
||||
- name: Authentication samples
|
||||
uid: security/authentication/samples
|
||||
- name: Community OSS authentication options
|
||||
uid: security/authentication/community
|
||||
- name: Identity management solutions
|
||||
|
|
Loading…
Reference in New Issue