Artak b4c1921666 Migrating to the new solution file format - .slnx (#61273) 11 ay önce
..
Authentication 72fd6dde3c Update .NET SDK to 10.0.100-preview.4.25180.3 (#61244) 11 ay önce
Authorization 8ec8cbf89d Clarify DefaultPolicy and FallbackPolicy Behavior in XML Docs (#60619) 1 yıl önce
CookiePolicy 3ed133de75 Update .NET SDK to 10.0.100-alpha.1.24560.6 (#58862) 1 yıl önce
perf 4cd47a5e9b Better logs in AuthorizationMiddleware (#43862) 3 yıl önce
samples 9c2baad6fe [main] Update dependencies from dotnet/efcore, dotnet/runtime (#57602) 1 yıl önce
test bac31da561 Update .NET SDK to 10.0.100-preview.3.25122.1 (#60564) 1 yıl önce
.vsconfig 8700479997 Clean up remaining `net461` references (#37731) 4 yıl önce
AuthSamples.slnf b4c1921666 Migrating to the new solution file format - .slnx (#61273) 11 ay önce
README.md c37ee916d1 Changed docs.microsoft.com links to learn.microsoft.com Issue: #44175 (#46206) 3 yıl önce
Security.slnf b4c1921666 Migrating to the new solution file format - .slnx (#61273) 11 ay önce
build.cmd 0801cea403 Favor project-specific build scripts over top-level script (#29918) 5 yıl önce
build.sh 0801cea403 Favor project-specific build scripts over top-level script (#29918) 5 yıl önce
startvs.cmd 3117f43c33 Migrate to single sln file + slnf files (#23581) 5 yıl önce
startvscode.cmd e4525465b8 Add AuthN/AuthZ metrics (#59557) 1 yıl önce

README.md

Security

Contains the authentication and authorization components for ASP.NET Core. See the ASP.NET Core security documentation.

Some community projects related to authentication and authorization for ASP.NET Core are listed in the documentation.

Description

This area has the following subdirectories:

  • Authentication/: Components for identifying a user
  • Authorization/: Components for determining if a user has the required permissions
  • CookiePolicy/: A middleware that enforces security attributes on response cookies.
  • perf/: Performance testing infrastructure.
  • samples/: Samples that combine some of the above feature areas.
  • test/: Shared tests.

Notes

ASP.NET Security does not include Basic Authentication middleware due to its potential insecurity and performance problems. If you host under IIS, you can enable Basic Authentication via IIS configuration.

Development Setup

Build

To build this specific project from source, you can follow the instructions on building a subset of the code.

Or for the less detailed explanation, run the following command inside this directory.

> ./build.cmd

Test

To run the tests for this project, you can run the tests on the command line in this directory.

Or for the less detailed explanation, run the following command inside this directory.

> ./build.cmd -t

You can also run project specific tests by running dotnet test in the tests directory next to the src directory of the project.

More Information

For more information, see the ASP.NET Core README.