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?
224 views Asked by Ali Zeinali At
2
There are 2 answers
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#
- How to call a C language function from x86 assembly code?
- What does: "char *argv[]" mean?
- User input sanitization program, which takes a specific amount of arguments and passes the execution to a bash script
- How to crop a BMP image in half using C
- How can I get the difference in minutes between two dates and hours?
- Why will this code compile although it defines two variables with the same name?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Why can't I use the file pointer after the first read attempt fails?
- #include Header files in C with definition too
- OpenCV2 on CLion
- What is causing the store latency in this program?
- How to refer to the filepath of test data in test sourcecode?
- 9 Digit Addresses in Hexadecimal System in MacOS
- My server TCP doesn't receive messages from the client in C
- Printing the characters obtained from the array s using printf?
Related Questions in ASP.NET-MVC
- I have a problem outputing the roles on the page ListRoles.cshtml
- Dropdown list showing SQLServer2005SQLBrowserUser$DONSERVER instead of Active Directory group name in ASP.NET MVC C#
- Hosting ASP.NET MVC application on IIS web server using Windows 2019 server
- How to display only department fields associated with a selected department in student automation system?
- How to send select input data for form submission?
- Multi level project reference using dll
- How to upload file to Onedrive using ASP.NET MVC?
- ASP.NET MVC web app looping between fields only on some devices
- Is there any automatic job to load AD-groups?
- How to restrict admin js files to download
- Download PDF in ASP.NET MVC application
- How to add bootstrap theme/example into ASP.NET MVC 5?
- Web API works with Windows authentication enabled when consumed via Swagger but throws an unauthorized issue when accessed through web app
- ASP.Net Core 7.0 Web App (Model-View-Controller) ErrorViewModel OnGet OnPost do not get called or executed
- OAuth 2.0 keep getting Authorization has been denied for this request
Related Questions in ASP.NET-MVC-5
- Set SignalR connection specific origin does not work in asp,net mvc 4.8
- I want to connect to an Oracle database with my ASP.NET MVC web application
- HTTP Error 401.0 - Unauthorized You do not have permission to view this directory or page when running ASP.NET MVC 5 app from VS 2019 & IIS Express
- C# MVC5 Routing for both default and Area without adding "Area" in the routeValues
- ASP.NET MVC 5 / Dev Extreme HTML Editor Control / Azure Pipeline build partial generation issues?
- ASP.NET MVC route by a city then controller and action
- How to add async to resource file while using @Styles.Render in ASP.NET bundling?
- Asp.Net MVC5 survey-jquery - node_modules/survey-jquery/survey-jquery.d.ts' is not a module
- Can't add data into ViewModel DbSet
- MVC 5 Redirect the user to a page based on CultureInfo
- Changing DATETIMEOFFSET Values globally across the application using culture in C# & ASP.NET MVC5
- ASP.NET MVC 5 : render partial view blocking the navigation
- OWIN Facebook login throws JsonReaderException
- Bypass validations in ASP.NET MVC 5
- How can I replicate the functionality of IgnoreQueryFilter() in EF6?
Related Questions in ASP.NET-IDENTITY-2
- The 'Claims' property on the 'Customer' type is not a navigation property
- ASP.NET MVC using Azure AD for Authorization
- ASP.Net identity redirect to login not working behind proxy
- ASP.NET Core Identity Enable Authenticator page
- Why is ASP.NET Identity unable to validate a password reset token on one instance that was issued from another?
- How to implement Single Sign On in ASP.NET MVC application
- ASP.NET MVC Usermanager SendEmailAsync: How to change sender email
- How to change PasswordValidator Properties error message in asp.net mvc identity 2
- Migration of users from asp.net identity 2 to firebase authentication
- Build Microsoft.AspNet.Identity from source, throws error when resolving packages
- AspNet MVC get User or Identity object by username for any user (not current user)
- UserManager.SendEmailAsync works on localhost but does not work on server
- Configuring Password Requirements in ASP.net Core 3 Identity Doesn't Work
- How to add custom validation to an OWIN based authentication workflow in ASP.NET MVC 5?
- Identity Sever 4 - Users to change their Username/Email
Related Questions in OWIN-MIDDLEWARE
- .NET 4.8 Owin OpenIdAuthentication: middleware not returning a 302 on full blown pages versus a test page
- Unable to Override Cache Control response headers in ASP.net Web API using OwinMiddleware for signalr/negotiate signalr/start calls
- Swagger in ASP.NET with OWIN and adding headers to response in middleware
- Handling Consent in .Net Framework 4.8 Web Forms/OWIN middleware app and Microsoft.Identity.Web
- Linkedin login through owin.security.OpenIdConnect in .net4.7.2 and MVC5 based webapplicaiton
- How to integrate owin with classic asp project
- IDX20803: Unable to obtain configuration and IDX20804: Unable to retrieve document for openID Connect
- Problem oauth Google Login in Identity server 3 MVC
- I need to redirect to custom access denied page when a user access the site and authentication is failed I am using Owin authentication with MVC
- How to setup service in WCF that can be used anywhere within the request scope?
- What's the Owin middleware alternate in WCF?
- Why does Visual Studio skip some directories like Controllers, Classes, and App_Start when publishing to Azure?
- Using ADFS as the identity provider to authenticate an user from MS Office
- Getting error OWIN start.cs while web API hosting on prem IIS server and api having azure ad bearer authentication
- Microsoft Owin | Adding WWW-Authenticate in case of unauthorized
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?
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)
After a lot of searching i found a solution here