Questions tagged [asp.net-membership]

ASP.NET membership gives you a built-in way to validate and store user credentials.

ASP.NET Membership works on top of forms-authentication and gives you:

  • Ability to create and store users and their passwords with little or no code.
  • Out-of-the-box support for changing, resetting, retrieving and encrypting passwords.
  • Choice of two storage locations - SQL Server and Active Directory.
  • Custom providers can be created to store users in custom stores

Resources

MSDN - Introduction to Membership
4guysfromrolla - Examining ASP.NET's Membership, Roles, and Profile

3256 questions
1
vote
0 answers

User.Identity.IsAuthenticated is false after publishing on Azure

We have a web application developed in MVC which uses Membership providers for authentication. In one scenario we have a code which checks for User.Identity.IsAuthenticated and HttpContext.Current.Session but both are returning as false when…
1
vote
0 answers

ASP.NET membership create users, logging in works. But then it doesn't?

I have a application that connects to a remote sql server. I am able to create users and they are stored in the DB. Then I can go to the login page and login. But after a while, I am unable to log in and it just sits at the login page. The user is…
Bob Jones
  • 21
  • 1
1
vote
2 answers

What is a good way to extend .Net Membership to track user logins

As far as I can tell, the basic implementation of .Net membership records lastuserlogin but does not track each login, something I need to do now. I've done some research and I'm pretty sure one approach is to create a custom class that extends the…
nycdan
  • 2,819
  • 2
  • 21
  • 33
1
vote
1 answer

Get newly created member's ProviderUserKey

I've got this line which works perfectly: // MembershipCreateStatus var createStatus = MembershipService.CreateUser(model.Email, model.Password); Now I want to get the ProviderUserKey of the member that was just created. What is the easiest way to…
David Murdoch
  • 87,823
  • 39
  • 148
  • 191
1
vote
0 answers

Migrate Asp.Net Membership to Oauth 2

I have a website built from long time ago using Asp.Net Membership. Now I am trying to rewrite it on a new website but there are some functions that are not done then user have to do it in old website. Is there any way user can login one time from…
1
vote
1 answer

Adding WebGrid to a MembershipUserCollection

Here's the snippet of my view that is giving me error @model MembershipUserCollection @{ ViewBag.Title = "Index"; } @{var usersGrid = new WebGrid(source: Model, rowsPerPage: 40);} apparently the WebGrid constructor does not accept a…
nacho10f
  • 5,816
  • 6
  • 42
  • 73
1
vote
0 answers

ProfileCommon.Save() restarts IIS

In my ManageAccounts.aspx page I use in it's code behind ManageAccounts.aspx.cs I have my callback protected void CreatedUser(object…
Jaroslav Kadlec
  • 2,505
  • 4
  • 32
  • 43
1
vote
1 answer

Asp.net membership error

We have a live running business system with an error which occurs from time to time. The error is according to the stack trace comming from the asp.net membership provider. It does not seem to matter which user is currently logged on. As far as i…
Magnus
1
vote
1 answer

Prevent Last 'N' password reuse - MVC 3

I have a login form that I created in MVC 3 which has a 'change password' view. At the moment there are no restrictions with respect to reusing previous passwords. I understand that I'd need to create a custom password manager as ASP.net has…
1
vote
1 answer

Why doesn't the Password Recovery link show up in my Login control?

I have an ASP.NEt 2010 web app. I have a login control with the following definition. However, not matter what I do, the "Forgot Your Password" link is not display?
John Beebee
  • 43
  • 1
  • 2
  • 6
1
vote
4 answers

ASP.NET Membership Password?

If I require a password to be between 7 and 16 characters and contain at least 1 numeric password and then send a temporary password that contains no numeric characters and % signs and the ^ sign, will the password fail?
Xaisoft
  • 45,655
  • 87
  • 279
  • 432
1
vote
0 answers

Membership.ValidateUser with SHA-1 password

I am using the following Membership.ValidateUser method to validate user with SHA-1 hashed password, but it always returns false. If I put a non-hashed password, in other words, plain password, then it returns true. I wonder what I am doing wrong.…
casillas
  • 16,351
  • 19
  • 115
  • 215
1
vote
1 answer

Method is only supported if the user name parameter matches the user name in the current Windows Identity

I suddenly get the below error. My application was working fine until I probably modified something, but don't know what Server Error in '/' Application. -------------------------------------------------------------------------------- Method is…
ebcrypto
  • 610
  • 1
  • 14
  • 28
1
vote
1 answer

An Application Connect with Multiple database and set Membership cookies

I'm writing a method that set all of database connection string with it.The method has some parameters like connection string and cookie domain (for single sign on state) , ... I can get Membership and role Information with specified connection…
1
vote
1 answer

How to tie ASP.NET permissions to WCF service

I am creating a large ASP.NET 4 site which has a WCF service backend. I would like for the site to use the service for login and authorization. Basically when the user gets to the login page, instead of using a membership provider I want the WCF…
bleepzter
  • 9,607
  • 11
  • 41
  • 64