29
votes
2answers
21k views

Role based authentication in the new MVC 4 Internet template using simplemembership

I like the new simplemembership feature in MVC 4 internet template with links to OAuth for external logins in VS 2012 RTM. For the most part authentication feature are working. However even after ...
15
votes
3answers
9k views

How do I manage profiles using SimpleMembership?

I have an ASP.NET MVC 4 site based off the internet template. I am using the SimpleMembership which i set up with that template. I can modify the Users table which has been creted for me but I am ...
13
votes
4answers
10k views

SimpleMembershipProvider not working

I started a new internet project with VS2012 and am trying to just restructure my project a bit and I can't seem to keep the SimpleMemberhsipProvider working. Basically, all I've done is move the ...
0
votes
1answer
301 views

How do I use my own database with SimpleMembership and WebSecurity? What is MVC4 security all about?

I've read everything on this topic I could find, including MSDN articles and SO posts, but I'm still very lost and confused. Questions Please answer the following (briefly, if possible): What is ...
17
votes
3answers
12k views

How to create custom additional fields in UserProfile in MVC4

I faced with new ASP MVC 4 feature, it shipped with new membership db schema and new initialization. In mvc 3 and old versions developer able to create custom user profile fields using specifications ...
1
vote
2answers
2k views

SimpleMembershipProvider MinRequiredPasswordLength always returns 0 despite it being defined as 6 in Web.config membership provider section

I switched to SimpleMembershipProvider in an ASP.NET MVC 4 app. Everything else is working great but there's this problem... When I try this code: var password = ...
3
votes
1answer
414 views

Customizing SimpleMembership in MVC 4

After reading this good BLOG about adding custom data to UserProfile table, I wanted to change it the way that UserProfile table should store default data + another class where all additional info is ...
8
votes
3answers
8k views

How to make WebSecurity.Login to login using username or email?

WebSecurity.Login in simplemembership take username and password, how to make it to login the user using username or email instead of just username?, to make the user free to enter his email or ...
16
votes
4answers
13k views

SimpleMembership with custom database schema in ASP.NET MVC 4

I want to enable the ASP.NET MVC 4's SimpleMembership API to integrate with my own database schema. I have a plain and simple table in my database called Users with these fields: Id Name Password ...
6
votes
3answers
5k views

SimpleMembership, MVC4, AuthorizeAttribute and Roles

I’m trying to add authorize attributes to some of my MVC4 controllers, and they work fine as long as it’s a plan [Authorize] or [Authorize(Users="myuser")], but the second I add in any sort of role ...
1
vote
2answers
2k views

How can I customize simple membership provider to work with my own database ASP.NET mvc 4

I’m exploring ASP.NET MVC 4 these days. I will be pleased if someone can help by answering my question . I am building an academic project "Project management and support system" . I have designed my ...
1
vote
1answer
201 views

How to Populate Custom Properties Tables When Using SimpleMembership in ASP.NET MVC 4

I started working on a MVC project which has 3 types of users (customers, service providers, and administrators) with different specific properties. I'd like to extend the default SimpleMembership ...
1
vote
2answers
2k views

Using MVC 4 SimpleMembership with an existing database-first EF model

I am trying to use SimpleMembership in my MVC 4 for the first time and I already have an existing database and EF5 model created based on it! I searched a lot but I cant find how I could use it in my ...
0
votes
2answers
586 views

code first membership provider

How can I integrate EF 5.0 with membership provider using code first? I have my own database schema which I want to use for registration of users etc.
0
votes
1answer
463 views

MVC4 SimpleMemberhip Intranet webapp with Custom Roles

I am using SimpleMembership with WebMatrix. Since its an Intranet webapp, I am using the exisitng domain users in combination with custom roles and storing them in local webpages_ tables. I am trying ...

1 2
15 30 50 per page