SimpleMembership is the default membership provider in ASP.NET MVC4. It supports a customized User table and OAuth.
Questions tagged [simplemembership]
596 questions
0
votes
1 answer
MVC 4 simplemembership login from app on phone
I have a site running mvc4 with simplemembership provider.
I want to let my users access the same data on a phone (ios, android, wp8) as on a webpage, hence I need them to logon to the same user database as my MVC.
How do I verify the password from…

Christian M
- 488
- 6
- 22
0
votes
1 answer
How to implement Membership provider for MVC4 Razor, with Ninject and Repository Pattern?
I unable to understand how to implement Membership provider with MVC4 Using DI (Ninject) and Repository pattern ?
Any body please provide any code sample to understand how to implement this !!!

Shubhajyoti Ghosh
- 1,292
- 5
- 27
- 45
0
votes
1 answer
Is it possible to get SimpleMembership to call a web service?
My web database server is being moved from the DMZ to the company LAN (don't ask why!). The downside of this is that my MVC 4 website is now gonna have to talk to an app server with web services (or web api) to get to the database. This isn't a…

user70267
- 113
- 5
0
votes
1 answer
SimpleMembershipProvider, Entity Framework and default database
I'm using in a MVC4 internet app the new SimpleMemebership provider with Entity Framework code first. Evrything is fine except that the framework creates the new database with named "DefaultConnection" even if I changed it.

Davide
- 1,305
- 3
- 16
- 36
0
votes
1 answer
Why HttpContext is null using SimpleMembership in WindowsForms?
I've implemented a Simple Membership in my ASP.NET MVC4 application. But now I need to implemente the creation the users and verify the login in it.
So I started to copy some pieces of code of my recent project to this. By example, this is the part…

Darf Zon
- 6,268
- 20
- 90
- 149
0
votes
1 answer
SimpleMembershipProvider creating odd table names
So I really don't care the table names created by SimpleMemberProvider when the table names are something like "webpages_UsersInRoles".
However I do have a problem when it creates tables with names like "DOMAIN\user.webpages_UsersInRoles".
I kid…

Mr. Young
- 2,364
- 3
- 25
- 41
0
votes
2 answers
Is there a way to use EMail address as the Username?
I'm using the simple membership provider inside an asp.net mvc 4 app. I'm quite new and am just learning the asp.net mvc platform. I was wondering if there is a simple way to have visitors use their email address as their username?
Is it as simple…

hjavaher
- 2,589
- 3
- 30
- 52
0
votes
1 answer
Should I seed a SimpleMembership database with EF code or do it inside a filter?
I am just starting out implementing ASP.NET MVC4 Simple Membership. In the template application
I see the following code:
namespace WebUx.Filters
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false,…
user1943020
0
votes
1 answer
SimpleMembership with ASP.Net Web application (NO MVC, NO RAZOR. Just standard .net web project)
I'm having problems to implemente SimpleMembership in my project. Basically, I've not been able to find any information about restricting access to pages. This is what I've done so far:
I have my login page called default.aspx. I've been able to…

Cesar Vinas
- 343
- 1
- 10
- 20
0
votes
1 answer
Latest MVC forms authentication
I'm trying to implement asp.net membership (forms version) using VS2012 and MVC4.
I've created the database tables using aspnet_regsql.exe and now I want to configure the web.config so I can run the 'asp.net configuration' utility in visual…

Bobbler
- 633
- 1
- 7
- 21
0
votes
1 answer
Getting Membership records from SimpleMembership with EF Code First
I'm in the process of getting my head around how the new SimpleMembership provider works in MVC 4 with EF Code First. So far I've got everything working pretty well, but I'm running into something I just don't quite understand.
SimpleMembership…

Scott
- 13,735
- 20
- 94
- 152
0
votes
1 answer
MVC 4 Simplemembership
I am upgrading a site to MVC 4 and the new simplemembership is killing me.. I am not sure if I am just being stupid but I cannot seem to get UserName from a stored UserId.
In mvc 3 with asp membership I used the following in Razor views where…

user1909266
- 11
- 3
0
votes
2 answers
how can i use AntiForgeryToken with JSON post in mvc 4
I have jQuery code that post data with JSON.stringify to controller class but when I used AntiForgeryToken, it doesn't work.. is any better way to secure JSON post or I am missing out something....
secondly do i need additional to this .. i.e.…

K.Z
- 5,201
- 25
- 104
- 240
0
votes
2 answers
SimpleMembershipProvider not adding tables to my database
I have a standard ASP.NET MVC4 application, and I am building out the DAL with EF Code First. Currently there are around 20-30 models and I am at a point where I want to integrate users and roles. I have research this a ton and still can't seem to…

ledgeJumper
- 3,560
- 14
- 45
- 92
0
votes
1 answer
ASP.NET MVC 4 SimpleMembership missing roleManager, etc in web.config
I understand the whole membership approach is supposed to be easier in MVC 4.
However, this is proving to be very time consuming in getting this to work.
Case in point: The example at…

John Smith
- 165
- 2
- 10