Skip to content

Commit 96ccf19

Browse files
Provide Microsoft.AspNetCore.Identity.UI package README (#57580)
* Add PACKAGE.md * Update src/Identity/UI/src/PACKAGE.md Co-authored-by: Stephen Halter <halter73@gmail.com> * Update src/Identity/UI/src/PACKAGE.md Co-authored-by: Stephen Halter <halter73@gmail.com> --------- Co-authored-by: Stephen Halter <halter73@gmail.com>
1 parent 9c2baad commit 96ccf19

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

src/Identity/UI/src/PACKAGE.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## About
2+
3+
`Microsoft.AspNetCore.Identity.UI` provides the default Razor Pages UI for the ASP.NET Core Identity framework.
4+
5+
## Key Features
6+
7+
* User registration and login functionality
8+
* Account management
9+
* Two-factor authentication
10+
11+
## How to Use
12+
13+
To use `Microsoft.AspNetCore.Identity.UI`, follow these steps:
14+
15+
### Installation
16+
17+
```sh
18+
dotnet add package Microsoft.AspNetCore.Identity.UI
19+
```
20+
21+
### Configuration
22+
23+
Add the following code to the `Program.cs` of your ASP.NET Core app:
24+
25+
```csharp
26+
builder.Services.AddDefaultIdentity<IdentityUser>()
27+
.AddEntityFrameworkStores<ApplicationDbContext>();
28+
29+
var app = builder.Build();
30+
31+
app.UseAuthentication();
32+
app.UseAuthorization();
33+
34+
app.MapRazorPages();
35+
```
36+
37+
## Additional Documentation
38+
39+
For additional documentation and examples, refer to the [official ASP.NET Core Identity documentation](https://docs.microsoft.com/aspnet/core/security/authentication/identity).
40+
41+
## Feedback & Contributing
42+
43+
`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).

0 commit comments

Comments
 (0)