The ASP.NET Core MVC Identity Extension is an open-source solution designed to extend the functionality of ASP.NET Core Identity MVC classes. This project adds features such as authentication, role management, extended user fields, and profile photo functionality to your ASP.NET Core application.
Before using this extension, make sure you have the following prerequisites:
- .NET Core SDK
- Visual Studio or Visual Studio Code
- SQL Server or another compatible database for Entity Framework
To install the ASP.NET Core MVC Identity Extension, follow these steps:
-
Clone the repository:
git clone https://github.com/richardnwonah/AEII/blob/main/README.md
-
Open the solution in your preferred development environment (e.g., Visual Studio).
-
Configure your database connection string in the
appsettings.json
file. -
Build and run the application.
To enable authentication using this extension, follow these steps:
-
Register and configure the Identity Server.
-
Use the provided authentication endpoints and methods in your controllers and views.
This extension allows you to manage roles easily:
-
Use the
RoleManager
to create, update, and delete roles. -
Assign roles to users using the
UserManager
.
You can add custom fields to user profiles:
-
Use the
ExtendedUser
class to define additional user properties. -
Extend registration and profile management forms to capture and display these fields.
To enable profile photo functionality:
-
Implement a file upload feature for users to upload profile photos.
-
Store user profile photos in a secure location and associate them with user profiles.
The project configuration is primarily done through the appsettings.json
file. Customize the settings to match your application's requirements.
We welcome contributions to this open-source project. If you'd like to contribute, please follow our Contributing Guidelines.
This project is licensed under the MIT License.
Find project screen shots in root/images.