Questions tagged [simplemembership]

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

596 questions
0
votes
1 answer

Simplemembership and cookie userdata compatibillity

I am trying to use SimpleMembershipProvider for FormsAuthentication. Now this provider internally creates a FormsAuth cookie without any additional userdata. I want to include some other information in the cookie such as UserId, Role, etc I have…
GeekzSG
  • 943
  • 1
  • 11
  • 28
0
votes
1 answer

MVC4 SimpleMembership Connection Strings

Ihave a DB First EF5 project that I am implementing SimpleMembership in. I have most of it working, but a question has come up. The main User table created by Simple Membership has the UserName in it. I have a couple other places in the app where…
BattlFrog
  • 3,370
  • 8
  • 56
  • 86
0
votes
1 answer

Workflow with MVC 4 - EF 5 - SimpleMembershipProvider

So I want to build an application with MVC 4 and Entity Framework 5. I've build simple applications before, but now I need some security around my current effort... I have some confusion / questions that I was hoping someone could answer; First...…
stewbash
  • 51
  • 6
0
votes
3 answers

The name 'Roles' does not exist in the current context

I have ported Migrations from a web app to a class library project. Everything works fine, except that I can't call the static class Roles. I have included the namespace using System.Web.Security; which is where the Roles are located. Here is the…
Yustme
  • 6,125
  • 22
  • 75
  • 104
0
votes
1 answer

Debug SimpleMembershipProvider source

I went through this article (http://msdn.microsoft.com/en-us/library/cc667410.aspx) which shows how one can debug asp.net source code. Now, I'm having some serious trouble using the new SimpleMembershipProvider in WebMatrix.WebData namespace, and I…
Phillippe Santana
  • 2,906
  • 2
  • 28
  • 29
0
votes
1 answer

Will SimpleMembership work in an MVC3 DB first app?

Building an MVC 3 app to work with an existing SQL Server 2012 database. The existing database has an existing UserProfile table with id, login, password and email. I used this quick tutorial to get the nuget simplemembership pack working, and…
BattlFrog
  • 3,370
  • 8
  • 56
  • 86
0
votes
1 answer

Get Facebook extra details in MVC 4 using simple membership Provider

Currently I used default OAuthWebSecurity.RegisterFacebookClient(appId: "", appSecret: ""); to authorize the Facebook user. Also it will add UserName into UserProfile table. Now is there any way can I access and store some default details from…
0
votes
1 answer

SimpleMembershipProvider roles not accessible

I have MVC4 application which uses SimpleMEmbershipProvider for authentication mechanism. Everything works fine, apart of when I return to the application and authenticate using persistant cookie. I am authenticated fine, but cannot access roles…
Bartosz
  • 4,542
  • 11
  • 43
  • 69
0
votes
1 answer

MVC4 Intercept ALL Requests that require Authentication

I'm wanting to require that all users have some additional information filled out before they proceed to ANY section of the site that requires authentication. If possibly I'm wanting to catch on [Authorize] annotations, but ignore any…
Jared
  • 5,840
  • 5
  • 49
  • 83
0
votes
1 answer

Simplemembership Login and RemeberMe ASP.Net MVC4

I am using ASP.net MVC4 with SimpleMemberShip. I simply want to store the username if the remember me checkbox is ticked and reload it from the cookie. Login works fine, RememberMe is set to true. But…
Simon
  • 577
  • 6
  • 15
0
votes
1 answer

SimpleMembershipProvider in mobile app ASP.NET MVC 4

I'm trying to use SimpleMembershipProvider to manage the authentication process of my mobile application. I generated the project using Mobile template, but this doesn't generated the same files of the Internet application template. It doesn't…
amp
  • 11,754
  • 18
  • 77
  • 133
0
votes
1 answer

c# code executed regardless of javascript function being called

I have a problem where the user is logged out all the time even though the function logout hasn't been executed. It seems like this is due to the code being in c# (this is in a razor layout page mvc4)