❔ 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•15mo ago
Message Not Public
Sign In & Join Server To View
yes it is
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
what is the reasonable choice?
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
I have existed db and users table, also I created AppContext.cs which not derived from IdentitContext,
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
yeah
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Can I use 2 data context in my project?
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Okay, I'll try thanks a lot
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
I am working on localhost
I have azure account but not using for project
so in this tutorial, it is creating Web app, Should i use both of them?
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
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•15mo ago
Message Not Public
Sign In & Join Server To View
okay I'll follow tutorial now. Thanks for answers
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
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.