I'm working on project using ASP.Net MVC 5 that have two type of user Type1 and Type2 the username of each user Type is his phone number one person should be able to sign up as both Type1 and Type2 user it mean each type should have separate register form and so it seems each type should have separate Table to store. And the problem is this how should I manage them for Authentication and Authorization system? Should I Use ASP.NET Identity? with any solution? Or Is there Any solution better than ASP.NET Identity
How to Manage Two Kind of User with seprate Table in asp.net mvc?
221 Views Asked by Ali Zeinali At
2
There are 2 best solutions below
0
Hadee
On
If you using ASP.Net MVC 5 you should diffidently go to ASP.NET Identity.Check this for more information about ASP.NET Identity. Then you should differentiate between role and claim clearly in your authentication implementation in ASP.NET Identity which suits to your project.
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in ASP.NET-MVC
- Can MVC.NET prevent SQL-injection at razor or controller level?
- Getting and passing MVC Model data to AngularJS controller
- Access property of an object of type [Model] in JQuery
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- Bundling and minification issue in MVC
- ASP-MVC Code-first migrations checkbox not active
- Why does Azure CloudConfigurationManager.GetSetting return null
- Dynamic roles list in CustomAuthorize ASP MVC
- Jquery: Change contents of <select> tag dynamically
- Why web API return 404 when deploy to IIS
- MVC route URL not containing parameter
- Invalidate user credentials when password changes
- MVC : Insert data to two tables
- MVC - Only allow users to edit their own data
- Submit Button on Razor View doesn't call Action Result - MVC
Related Questions in ASP.NET-MVC-5
- Getting and passing MVC Model data to AngularJS controller
- How to fix the model to correctly use the MVC Foolproof library?
- Why do I have to publish MVC project twice?
- WebApi: Reading errors
- MVC route URL not containing parameter
- Checks not showing in the correct location
- Is there another way to unit test business logic in mvc
- Perform wildcard search of all (displayed) model fields in MVC?
- Identity 2.0 After Login go to Infinite Loop asp.net mvc 5
- How to define multiple partial Owin Startup classes and have them all run their code
- How to add asp.net mvc5 to visual studio express 2012 edition?
- Get desired html element's attribute value and set to hidden field before binding in Asp.Net MVC
- Authenticate User for ASP.NET MVC from Sharepoint
- MVC5 Typeahead Feature
- Validation for EditorFor helper mvc5
Related Questions in ASP.NET-IDENTITY-2
- Identity 2.0 After Login go to Infinite Loop asp.net mvc 5
- Logout on browser or tab close
- Validate username and password without authenticating the user
- AuthenticationManager.GetExternalLoginInfoAsync() always null
- C# Identity UserManager CreateAsync then FindByEmailAsync returns User with Id=0
- Implementing UserManager to use a custom class and Stored Procedures
- Why is the IdentityUser class in the Microsoft.AspNet.Identity.EntityFramework namespace and not in the Core package?
- Microsoft.AspNet.Identity.Owin.OwinContextExtensions doesn't seem to work
- LogIn in Asp.Net Identity project
- Reuse existing ASP.NET-MVC 5 Identity 2 authorization for WEB API OData controllers to make it easy to login for other apps?
- Custom authorization with Azure AD Authentication in OWIN Web API
- RoleManager working but UserManager gives "The entity type IdentityUser is not part of the model for the current context." error
- ASP.NET Web-API Facebook login
- User.Identity.GetUserId() null after login again
- Violation of PRIMARY KEY constraint 'PK_dbo.AspNetUserRoles' is thrown in SignInManager.PasswordSignIn
Related Questions in OWIN-MIDDLEWARE
- Global Error Handling in Service Fabric Stateless Web API
- Exception when OWIN Middleware AuthenticationHandler AuthenticateCoreAsync returns null
- How to intercept 404 using Owin middleware
- Programmatically redirect unauthorized users using Microsoft.Owin.Security.OpenIdConnect
- Owin Middleware
- Is it possible to login in ASP.NET WebApi application with Individual account , Microsoft account and Azure AD account
- How to Manage Two Kind of User with seprate Table in asp.net mvc?
- login to an custom oauth2.0 server using the same tokens issued by the auth server
- How UseWindowsAzureActiveDirectoryBearerAuthentication validates the Azure Active directory Bearer token?
- Why use OWIN TestServer?
- Self-Hostable and IIS-hostable OWIN project
- How to add a request identifier to OWIN requests using Serilog?
- ASP MVC 5 HttpContext.Current.Request.IsAuthenticated is still TRUE after IIS app pool recycle
- Should I use OwinContext's Environment to hold application specific data per request
- Handling Consent in .Net Framework 4.8 Web Forms/OWIN middleware app and Microsoft.Identity.Web
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
After a lot of searching i found a solution here