Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion aspnetcore/includes/requireAuth.md

This file was deleted.

2 changes: 1 addition & 1 deletion aspnetcore/razor-pages/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ Add <xref:Microsoft.Extensions.DependencyInjection.MvcRazorPagesMvcCoreBuilderEx
## Additional resources

* See [Get started with Razor Pages](xref:tutorials/razor-pages/razor-pages-start), which builds on this introduction.
* [Authorize attribute and Razor Pages](xref:security/authorization/simple#aarp)
* [`[Authorize]` attribute in Razor Pages apps](xref:security/authorization/simple#authorize-attribute-in-razor-pages-apps)
* [Download or view sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/index/6.0sample)
* <xref:index>
* <xref:mvc/views/razor>
Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/razor-pages/index/includes/index35.md
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ Add <xref:Microsoft.Extensions.DependencyInjection.MvcRazorPagesMvcCoreBuilderEx
## Additional resources

* See [Get started with Razor Pages](xref:tutorials/razor-pages/razor-pages-start), which builds on this introduction.
* [Authorize attribute and Razor Pages](xref:security/authorization/simple#aarp)
* [`[Authorize]` attribute in Razor Pages apps](xref:security/authorization/simple#authorize-attribute-in-razor-pages-apps)
* [Download or view sample code](https://github.com/dotnet/AspNetCore.Docs/tree/main/aspnetcore/razor-pages/index/3.0sample)
* <xref:index>
* <xref:mvc/views/razor>
Expand Down
4 changes: 2 additions & 2 deletions aspnetcore/security/authentication/identity-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ builder.Services.Configure<PasswordHasherOptions>(option =>

## Globally require all users to be authenticated

[!INCLUDE[](~/includes/requireAuth.md)]
For information on how to require authentication for all app users, see <xref:security/authorization/secure-data#require-authenticated-users>.

<a name="iss6"></a>

Expand Down Expand Up @@ -295,6 +295,6 @@ services.Configure<PasswordHasherOptions>(option =>

## Globally require all users to be authenticated

[!INCLUDE[](~/includes/requireAuth.md)]
For information on how to require authentication for all app users, see <xref:security/authorization/secure-data#require-authenticated-users>.

:::moniker-end
2 changes: 1 addition & 1 deletion aspnetcore/security/authentication/identity.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ASP.NET Core Identity:

Users can create an account with the login information stored in Identity or they can use an external login provider. Supported external login providers include [Facebook, Google, Microsoft Account, and Twitter](xref:security/authentication/social/index).

[!INCLUDE[](~/includes/requireAuth.md)]
For information on how to require authentication for all app users, see <xref:security/authorization/secure-data#require-authenticated-users>.

The [Identity source code](https://github.com/dotnet/AspNetCore/tree/main/src/Identity) is available on GitHub. [Scaffold Identity](xref:security/authentication/scaffold-identity) and view the generated files to review the template interaction with Identity.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ASP.NET Core Identity:

Users can create an account with the login information stored in Identity or they can use an external login provider. Supported external login providers include [Facebook, Google, Microsoft Account, and Twitter](xref:security/authentication/social/index).

[!INCLUDE[](~/includes/requireAuth.md)]
For information on how to require authentication for all app users, see <xref:security/authorization/secure-data#require-authenticated-users>.

The [Identity source code](https://github.com/dotnet/AspNetCore/tree/main/src/Identity) is available on GitHub. [Scaffold Identity](xref:security/authentication/scaffold-identity) and view the generated files to review the template interaction with Identity.

Expand Down Expand Up @@ -258,7 +258,7 @@ ASP.NET Core Identity:

Users can create an account with the login information stored in Identity or they can use an external login provider. Supported external login providers include [Facebook, Google, Microsoft Account, and Twitter](xref:security/authentication/social/index).

[!INCLUDE[](~/includes/requireAuth.md)]
For information on how to require authentication for all app users, see <xref:security/authorization/secure-data#require-authenticated-users>.

The [Identity source code](https://github.com/dotnet/AspNetCore/tree/main/src/Identity) is available on GitHub. [Scaffold Identity](xref:security/authentication/scaffold-identity) and view the generated files to review the template interaction with Identity.

Expand Down
6 changes: 3 additions & 3 deletions aspnetcore/security/authentication/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ Finbuckle.MultiTenant:
* <xref:security/authorization/limitingidentitybyscheme>
* <xref:security/authentication/policyschemes>
* <xref:security/authorization/secure-data>
* [Globally require authenticated users](xref:security/authorization/secure-data#rau)
* [Globally require authenticated users](xref:security/authorization/secure-data#require-authenticated-users)
* [GitHub issue on using multiple authentication schemes](https://github.com/dotnet/aspnetcore/issues/26002)

:::moniker-end
Expand Down Expand Up @@ -302,7 +302,7 @@ See the [Orchard Core](https://github.com/OrchardCMS/OrchardCore) source for an
* <xref:security/authorization/limitingidentitybyscheme>
* <xref:security/authentication/policyschemes>
* <xref:security/authorization/secure-data>
* [Globally require authenticated users](xref:security/authorization/secure-data#rau)
* [Globally require authenticated users](xref:security/authorization/secure-data#require-authenticated-users)
* [GitHub issue on using multiple authentication schemes](https://github.com/dotnet/aspnetcore/issues/26002)

:::moniker-end
Expand Down Expand Up @@ -445,7 +445,7 @@ While it's possible for customers to write an app with multi-tenant authenticati
* <xref:security/authorization/limitingidentitybyscheme>
* <xref:security/authentication/policyschemes>
* <xref:security/authorization/secure-data>
* [Globally require authenticated users](xref:security/authorization/secure-data#rau)
* [Globally require authenticated users](xref:security/authorization/secure-data#require-authenticated-users)
* [GitHub issue on using multiple authentication schemes](https://github.com/dotnet/aspnetcore/issues/26002)

:::moniker-end
2 changes: 1 addition & 1 deletion aspnetcore/security/authorization/policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ if (context.Resource is AuthorizationFilterContext mvcContext)

## Globally require all users to be authenticated

[!INCLUDE[](~/includes/requireAuth.md)]
For information on how to require authentication for all app users, see <xref:security/authorization/secure-data#require-authenticated-users>.

<a name="exs"></a>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,6 @@ if (context.Resource is AuthorizationFilterContext mvcContext)

## Globally require all users to be authenticated

[!INCLUDE[](~/includes/requireAuth.md)]
For information on how to require authentication for all app users, see <xref:security/authorization/secure-data#require-authenticated-users>.

:::moniker-end
4 changes: 2 additions & 2 deletions aspnetcore/security/authorization/secure-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ See [this issue](https://github.com/dotnet/AspNetCore.Docs/issues/8502) for info

## Differences between Challenge and Forbid

This app sets the default policy to [require authenticated users](#rau). The following code allows anonymous users. Anonymous users are allowed to show the differences between Challenge vs Forbid.
This app sets the default policy to [require authenticated users](#require-authenticated-users). The following code allows anonymous users. Anonymous users are allowed to show the differences between Challenge vs Forbid.

[!code-csharp[](secure-data/samples/final6/Pages/Contacts/Details2.cshtml.cs?name=snippet)]

Expand Down Expand Up @@ -657,7 +657,7 @@ See [this issue](https://github.com/dotnet/AspNetCore.Docs/issues/8502) for info

## Differences between Challenge and Forbid

This app sets the default policy to [require authenticated users](#rau). The following code allows anonymous users. Anonymous users are allowed to show the differences between Challenge vs Forbid.
This app sets the default policy to [require authenticated users](#require-authenticated-users). The following code allows anonymous users. Anonymous users are allowed to show the differences between Challenge vs Forbid.

[!code-csharp[](secure-data/samples/final3/Pages/Contacts/Details2.cshtml.cs?name=snippet)]

Expand Down
Loading