Skip to content

Provide Microsoft.AspNetCore.Identity.UI package README #57580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 3, 2024
Merged
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
43 changes: 43 additions & 0 deletions src/Identity/UI/src/PACKAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## About

`Microsoft.AspNetCore.Identity.UI` provides the default Razor Pages 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<IdentityUser>()
.AddEntityFrameworkStores<ApplicationDbContext>();

var app = builder.Build();

app.UseAuthentication();
app.UseAuthorization();

app.MapRazorPages();
```

## 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).
Loading