C
C#15mo ago
halikuralde

❔ Suggestion for Authorization and Authentication on .Net MVC

hello, I'm newbie on .net. And I want to create login/register page with authentication and authorization. I have a db for users and they have roles(Admin/Student). I can't decide and implement which method should i use. I was trying JWT on MVC app but can't figure out. So should i create Web api project and send request to this project from MVC or cookie authentication is the best method for begginers? any recommendations would be great
21 Replies
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
halikuralde
halikuraldeOP15mo ago
yes it is
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
halikuralde
halikuraldeOP15mo ago
what is the reasonable choice?
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
halikuralde
halikuraldeOP15mo ago
I have existed db and users table, also I created AppContext.cs which not derived from IdentitContext,
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
halikuralde
halikuraldeOP15mo ago
yeah
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
halikuralde
halikuraldeOP15mo ago
Can I use 2 data context in my project?
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
halikuralde
halikuraldeOP15mo ago
Okay, I'll try thanks a lot
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
halikuralde
halikuraldeOP15mo ago
I am working on localhost I have azure account but not using for project
halikuralde
halikuraldeOP15mo ago
so in this tutorial, it is creating Web app, Should i use both of them?
No description
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
halikuralde
halikuraldeOP15mo ago
I am asking for confirmation. so I need to create 2 seperate App, one is MVC other one is Web App which contain identity. After that I should connect to Web App to MVC App
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
halikuralde
halikuraldeOP15mo ago
okay I'll follow tutorial now. Thanks for answers
Unknown User
Unknown User15mo ago
Message Not Public
Sign In & Join Server To View
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server