An open API service indexing awesome lists of open source software.

https://github.com/ozceliksinan/aspnetcore-identity-template

ASP.NET Core Identity is the membership system for building ASP.NET Core web applications, including membership, login, and user data.
https://github.com/ozceliksinan/aspnetcore-identity-template

asp-net-mvc csharp identity-management net-framework user-role-permission

Last synced: 2 months ago
JSON representation

ASP.NET Core Identity is the membership system for building ASP.NET Core web applications, including membership, login, and user data.

Awesome Lists containing this project

README

        


Simple Asp .Net Core Identity Template

## About The Project

ASP.NET Core Identity is the membership system for building ASP.NET Core web applications, including membership, login, and user data. ASP.NET Core Identity allows you to add login features to your application and makes it easy to customize data about the logged in user. You can find additional information in the ASP.NET Core Documentation.

```html

Simple Asp .Net Core Identity Template

```

## Features

- [x] CRUD Operations
- [x] Migration Operations
- [x] User Authentication
- [x] Register / Login Operations
- [x] Forgot Password
- [x] Roles Operations
- [x] SMTP E-Mail Sender

## Build With

![HTML5](https://img.shields.io/badge/html5-%23E34F26.svg?style=for-the-badge&logo=html5&logoColor=white)
![CSS3](https://img.shields.io/badge/css3-%231572B6.svg?style=for-the-badge&logo=css3&logoColor=white)
![Bootstrap](https://img.shields.io/badge/bootstrap-%238511FA.svg?style=for-the-badge&logo=bootstrap&logoColor=white)
![javascript](https://img.shields.io/badge/javascript%20-%23323330.svg?&style=for-the-badge&logo=javascript&logoColor=%23F7DF1E)
![C#](https://img.shields.io/badge/c%23-%23239120.svg?style=for-the-badge&logo=c-sharp&logoColor=white)
![MicrosoftSQLServer](https://img.shields.io/badge/Microsoft%20SQL%20Sever-CC2927?style=for-the-badge&logo=microsoft%20sql%20server&logoColor=white)
![.Net](https://img.shields.io/badge/.NET-5C2D91?style=for-the-badge&logo=.net&logoColor=white)
![Visual Studio](https://img.shields.io/badge/Visual%20Studio-5C2D91.svg?style=for-the-badge&logo=visual-studio&logoColor=white)

## Installation

1. Check the database connection on the appsetting.json file. Customize the database connection path here according to your own computer. By default the database name is PortfolioDb. You can enter SMTP settings from your own e-mail service.

```json
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"ConnectionStrings": {
"DefaultConnection": "Data Source=localhost\\SQLEXPRESS;Initial Catalog=IdentityDemoDb;Integrated Security=True; TrustServerCertificate=True; MultipleActiveResultSets=true"
},
"EmailSender": {
"Host": "mail.alanadiniz.com",
"Port": 587,
"EnableSSL": false,
"Username": "username",
"Password": "password"
},
"AllowedHosts": "*"
}
```
2. Type the add-migration command via the Package Manager Console.

```
add-migration DbCreateFirst
```

3. Type the update-database command via the Package Manager Console.

```
update-database
```
4. You can use the information below to enter the admin panel. You can use the /Users/Index address path for the admin panel.
```c#
// --- Identity User Information --- //
private const string adminUser = "sinanozcelik";
private const string adminPassword = "Sinan123.";
private const string adminEmailAddress = "[email protected]";

// Add new user
await userManager.CreateAsync(user, adminPassword);
// Add "admin" role to new user
await userManager.AddToRoleAsync(user, "admin");
```

## Contact Information

You can reach out to me using the following contact details:

[![Email](https://img.shields.io/badge/Email-info%40sinanozcelik.com-brightgreen)](mailto:[email protected])

[![Website](https://img.shields.io/badge/Website-sinanozcelik.com-blue)](https://sinanozcelik.com)

I'm always open to development and collaboration. Feel free to reach out to me!