From 2577d3d44ac9cb4fb5a48f100b719fd74d2613ff Mon Sep 17 00:00:00 2001 From: Mackinnon Buck Date: Wed, 28 Aug 2024 15:19:54 -0700 Subject: [PATCH 1/3] Add PACKAGE.md --- src/Identity/UI/src/PACKAGE.md | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 src/Identity/UI/src/PACKAGE.md diff --git a/src/Identity/UI/src/PACKAGE.md b/src/Identity/UI/src/PACKAGE.md new file mode 100644 index 000000000000..94efddca7374 --- /dev/null +++ b/src/Identity/UI/src/PACKAGE.md @@ -0,0 +1,41 @@ +## About + +`Microsoft.AspNetCore.Identity.UI` provides the default Razor Pages built-in UI for the ASP.NET Core Identity framework. + +## Key Features + +* User registration and login functionality +* Account management +* Two-factor authentication + +## How to Use + +To use `Microsoft.AspNetCore.Identity.UI`, follow these steps: + +### Installation + +```sh +dotnet add package Microsoft.AspNetCore.Identity.UI +``` + +### Configuration + +Add the following code to the `Program.cs` of your ASP.NET Core app: + +```csharp +builder.Services.AddDefaultIdentity() + .AddEntityFrameworkStores(); + +var app = builder.Build(); + +app.UseAuthentication(); +app.UseAuthorization(); +``` + +## Additional Documentation + +For additional documentation and examples, refer to the [official ASP.NET Core Identity documentation](https://docs.microsoft.com/aspnet/core/security/authentication/identity). + +## Feedback & Contributing + +`Microsoft.AspNetCore.Identity.UI` is released as open-source under the [MIT license](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/dotnet/aspnetcore). From f7aa5d83211229fcd534dda3ccb3465be119887c Mon Sep 17 00:00:00 2001 From: Mackinnon Buck Date: Thu, 29 Aug 2024 16:48:11 -0700 Subject: [PATCH 2/3] Update src/Identity/UI/src/PACKAGE.md Co-authored-by: Stephen Halter --- src/Identity/UI/src/PACKAGE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Identity/UI/src/PACKAGE.md b/src/Identity/UI/src/PACKAGE.md index 94efddca7374..872ffa0ca7d1 100644 --- a/src/Identity/UI/src/PACKAGE.md +++ b/src/Identity/UI/src/PACKAGE.md @@ -1,6 +1,6 @@ ## About -`Microsoft.AspNetCore.Identity.UI` provides the default Razor Pages built-in UI for the ASP.NET Core Identity framework. +`Microsoft.AspNetCore.Identity.UI` provides the default Razor Pages UI for the ASP.NET Core Identity framework. ## Key Features From 6cc895d86906d96e43a76f1ca1d325093cc6bee2 Mon Sep 17 00:00:00 2001 From: Mackinnon Buck Date: Thu, 29 Aug 2024 16:48:17 -0700 Subject: [PATCH 3/3] Update src/Identity/UI/src/PACKAGE.md Co-authored-by: Stephen Halter --- src/Identity/UI/src/PACKAGE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Identity/UI/src/PACKAGE.md b/src/Identity/UI/src/PACKAGE.md index 872ffa0ca7d1..fbdf2e91e1fc 100644 --- a/src/Identity/UI/src/PACKAGE.md +++ b/src/Identity/UI/src/PACKAGE.md @@ -30,6 +30,8 @@ var app = builder.Build(); app.UseAuthentication(); app.UseAuthorization(); + +app.MapRazorPages(); ``` ## Additional Documentation