Click here to Skip to main content
15,889,849 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I am staring a new project in MVC4. Can I use asp.net membership provider for my authentication/authorization purpose. There are very few roles in application(max 5 roles). But there are premium and paid customers. we need to distinguish these users. Please suggest.

Can I use a part of it? Like only for user registration and authorization? I want to use my own role based system. Is it possible?
Thanks,
Srinivas
Posted
Updated 8-Dec-14 2:00am
v2
Comments
ZurdoDev 8-Dec-14 7:29am    
I don't see why not.
sris 426 8-Dec-14 7:32am    
Is there any disadvantage of using it? How much it support for customization?
ZurdoDev 8-Dec-14 7:35am    
I'm not sure. I never use it personally. I think some people like it but I have always done the code myself.

1 solution

I think that can always be used.
But MVC provides attributes like Authorize for providing authorization based on roles.
And considering Authentication both forms and windows can be used for sure.
But in MVC you can create Custom Authorize attributes. Check the links below:-
Custom Forms Authentication in ASP.NET MVC Application[^]

Custom attribute that access parameters[^]
Post back your queries if any.
Hope this helps.
Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900