Questions tagged [simplemembership]

SimpleMembership is the default membership provider in ASP.NET MVC4. It supports a customized User table and OAuth.

596 questions
2
votes
1 answer

Is it possible to dynamically change MS - SimpleMembership database connection?

I'm having the following scenario: I'm working on a multi-tenant application that requires to redirect Database operations to each client DB. So when a user connects to the application, the system uses that client DB to process his actions and…
2
votes
2 answers

How to get Roles from using SimpleMembership?

I am developing a MVC4 application with SimpleMembership. I have a table - "userInfo" in which I am storing user's information such as Name, Email, Address, Phone, Role etc. When I register a user, data is stored in this table and…
ijs
  • 189
  • 1
  • 4
  • 11
2
votes
1 answer

How to login with C# desktop application to ASP.NET-encrypted username/password

Okay so what I'm trying to do is create a desktop application in Visual C# that allows the user to log in using the same credentials as the ones with which they used to sign up to my MVC website. ASP.Net MVC creates an account controller which…
2
votes
1 answer

MVC Simplemembership I cannot get the userID after logging a user in via OAuth

So I am in the process of implementing a Facebook login via MVC 4 simplemembership oAuth provider. Registering and signing in the user has worked well. However after signing in a user using oAth, I am unable to get the UserId of the authenticated…
Julian Dormon
  • 1,767
  • 4
  • 32
  • 58
2
votes
2 answers

MVC 4 SimpleMembership works fine locally but causes 401 on live server

I have a MVC 4 application that uses Simple Membership. Locally, on the dev box (IIS Express) it works fine. If I attempt to access a controller action decorated with the [Authorize] attribute I get returned to the login page as specified in the…
ChrisCurrie
  • 1,589
  • 6
  • 15
  • 36
2
votes
1 answer

How to Add Extra Fields of FistName and LastName in Userprofile of Asp.Net MVC 4 Simple Membership?

I want to add 2 Extra fields in UserProfile Asp.Net Simple membership, But unable to add and not find any help from internet. Please give me some solutions. Thanks in advance
2
votes
2 answers

SimpleMembership in a Intranet Application

I am creating an intranet application and I need help deciding what membership to use. SimpleMembership is said to be the future of ASP.NET authorization and authentication but it has those websecurity stuff and webpages prefixed tables. Is…
programad
  • 1,291
  • 3
  • 19
  • 38
2
votes
1 answer

Problems with MVC4 & External Login with Google

I've an ASP .NET MVC4 application that uses SimpleMembership and allows users to sign in with their google accounts. In order to do that I configured the application's AuthConfig class by uncommenting the OAuthWebSecurity.RegisterGoogleClient();…
2
votes
1 answer

MVC 4 Simplemembership confusion with Session

I am using simplemembership in our MVC 4 project and this creates a session as expected but it seems that the user information persists after the session expires. For example after 20 minutes, If User.Identity.IsAuthenticated == true still works,…
Julian Dormon
  • 1,767
  • 4
  • 32
  • 58
2
votes
2 answers

WebSecurity.UserExists() returns wrong value

I'm using ASP.NET MVC 4 with SimpleMembership. When I call WebSecurity.UserExists() for a specific user, it is returning true. However, the given user exists in the profile table but does not exist in the membership table. The online documentation…
John Deighan
  • 4,329
  • 4
  • 18
  • 19
2
votes
1 answer

SimpleMembership works locally but can't find SqlServier Instance when published

So I'm using SimpleMembership and locally it runs fine. The SQL Server it's using (locally) is actually the remote server, so I know the connection string is correct. However, when I publish the website and try to hit a protected endpoint, it hangs…
Sinaesthetic
  • 11,426
  • 28
  • 107
  • 176
2
votes
2 answers

Upload MVC4 site to server

I've developed website based on .NET MVC4. I used simple membership .NET built in forms authentication. I saw that the application uses some kind of MS database, but I don't really know what kind. I want to upload my site to server and publish…
Yaniv
  • 562
  • 1
  • 6
  • 18
2
votes
0 answers

WebSecurity.Logout() then WebSecurity.IsAuthenticated returns true

Consider that the user has a valid auth cookie, but their account has been deleted (from a different location) WebSecurity.IsAuthenticated returns true. WebSecurity.CurrentUserName returns the user's username, despite their account being deleted.…
spender
  • 117,338
  • 33
  • 229
  • 351
2
votes
1 answer

ASP.NET MVC 4 - Simple Membership, Facebook login broken when using Email instead of Username

I have a Code First MVC 4 App, I have swapped Username for Email in SimpleMembership - which works fine. I do that by changing Initialization to this: // Initialize database for Account WebSecurity.InitializeDatabaseConnection("MyEntities", "Users",…
niico
  • 11,206
  • 23
  • 78
  • 161
2
votes
1 answer

Get userId through ConfirmationToken

My application is performing email validation sending an email to the user. When the user click on the link, the following action is called: [AllowAnonymous] public ActionResult RegisterConfirmation(string Id) //Id=ConfirmationToken { …
amp
  • 11,754
  • 18
  • 77
  • 133