Role based authorization in dot net 6+ (MVC) | Asp.net Identity (Read pinned comment first)
Автор: Ravindra Devrani
Загружено: 2022-09-30
Просмотров: 68133
#dotnet6 #dotnetcore #identity #authorization
We are implementing login and registration functionality in dot net 6 mvc with Entity Framework Core. We will define role-based Authorization and authentication in dot net core. We will implement our own identity models.We are not using scafflolding of Identity for this project
.............................................................. ................
source code: https://github.com/rd003/Dotnet6-Mvc-...
...................................................................................
⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠⚠
🔊🔊Guys please read this before approaching it, at the time of creation I did not have idea that it might misguide some persons, some of you, who is very new to this, might thought that it is the only way.
We have two approaches to implement identity.
1.Scaffolding identity (You can learn it here: • asp .net core identity | Role based author... )
2. Custom raw way (Used in this tutorial)
🔊 1. Scaffolding Identity (benefits and downside):
⭐It's quick to implement, readymade, and it have tons of functionality (like external logins and lot more).
⭐It will save lot of time.
⚠ But one disadvantage (my personal opinion) it comes with razor pages, and you have to overwrite those functionalities.
🔊 2. Custom way to implement
Why have I created this?
Because I did not want to use razor pages of scaffolding, I wanted to use it in mvc architecture and I also wanted to understand the raw identity, how this thing actually works? So, I have created this tutorial.
🔊Disadvantages of using this raw approach:
👉Everything is built from scratch; you have to write lot of code. It is very time consuming.
👉Only contains login, signup, change password and role management functionality. If you want to use any new functionality like external logins, then you have to implement it manually.
..................................................................................
Other links:
Angular tutorials and projects: https://bit.ly/3DitqDp
dot net 6 tutorial and project: https://bit.ly/3MSrXGX
dot net core series: https://bit.ly/3TolF4i
dot net 6 projects: https://bit.ly/3zpn9ng
.......................................................
connect with me
Twitter: / ravi_devrani
GitHub: https://github.com/rd003
YouTube: / @ravindradevrani
..........................................
Become a supporter:
You can buy me a coffee: https://www.buymeacoffee.com/ravindra...
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: