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
3 answers

Is there an easy way to set up ASP.NET Membership tables in a custom Database?

ASP.NET Membership is just great as there are a ton of functionality right there to be used, and we don't need to change nothing at all. We can even create our own Provider based on Membership database, and that give us infinite possibilities, like…
balexandre
  • 73,608
  • 45
  • 233
  • 342
1
vote
0 answers

Asp.net membership web.config

I'm trying to use the asp.net membership roles and profiles for a website I'm creating for my company. I generated the tables through aspnet_regsql.exe Now everything works fine, besides the fact that the tables generated through regsql.exe are…
pancake
  • 590
  • 7
  • 24
1
vote
1 answer

C# MembershipUser.ChangePassword fails for one user only?

I'm using the change password feature of the standard AspNetSqlMembershipProvider in my ASP.NET MVC-2 app: MembershipUser user = Membership.GetUser(userId); string pwd = user.ResetPassword(); if (user.ChangePassword(pwd, confirmPassword)) { //…
JK.
  • 21,477
  • 35
  • 135
  • 214
1
vote
1 answer

Membership provider properties not being read from web.config

I'm having a problem with a custom Membership implementation for ASP.NET using EF. The thing is, my web.config features the default values for the provider but at runtime those default are only being read in Initialize() the first time provider is…
mare
  • 13,033
  • 24
  • 102
  • 191
1
vote
1 answer

ASP.NET create user and remember me

Using a CreateUserWizard (with only one step) and a logincontrol on the same page. But when i create a new user the Remeber me functionality dosent work (only if i log out and then log in again). I dont know if the persistant cookie is created. Im…
1
vote
3 answers

Umbraco :: Catching or Extending User Login

I am trying to catch the login event of Umbraco Users (login in the CMS). I have tried to extend from MembersMembershipProvider and override the ValidateUser method. I also changed the web.config to use my class. When i put a breakpoint in this…
1
vote
0 answers

How to create a connection string which points to Azure Active Directory in Web.Config?

I plan to create a connection string for my membership which points to Azure Active Directory. Here are what I've got from Azure Active Directory: Case 1: The information is get from https://portal.azure.com ClientId:…
1
vote
0 answers

Creating Membership Tables in MVC4 and VS2013

I am new to MVC, i created new empty template project started with the development, now i want to integrate membership in my project, i followed steps from Adding AspNet SimpleMembership to an Existing MVC4 Project After making appropriate changes…
Abbas
  • 4,948
  • 31
  • 95
  • 161
1
vote
1 answer

Best Practice for handling multiple authentication providers for MVC ala stackoverflow

I'm looking for suggestions on how to handle multiple auth providers like twitter, facebook, google, openid within an MVC app. What is the general idea? I've got my own user detail table and i'm currently using ASP.Net membership…
toddm
  • 141
  • 1
  • 4
  • 11
1
vote
1 answer

how to connect directly to aspnetdb database

I wanna connect to aspnetdb but it makes an error says "Login failed for user" this is the connection string in web config :
1
vote
0 answers

Umbraco: Problems getting member data with custom membership provider

In short, I have created a custom membership provider and a custom member. This is using the "old" .NET membership provider system. Right now I can log in successfully, and the custom member is accepted by the system as well. Note: Only methods…
Frederik T
  • 533
  • 2
  • 10
  • 30
1
vote
1 answer

LinkButton inside LoginView LoggedInTemplate, how to trap the Click event?

I have a master page that contains a LoginView control. In the LoggedInTemplate I have a link button. I would like to trap that click event and do some cleanup (kill session, forms auth, etc). No matter what I do for some reason the button event…
e36M3
  • 5,952
  • 6
  • 36
  • 47
1
vote
1 answer

ASP.NET SqlMembershipProvider: Unique but not required email?

Is there a way to configure ASP.NET SqlMembershipProvider such that Email is optional but when provided must be unique? I only found the requiredUniqueEmail attribute (web.config) which makes Email mandatory. Do I have to leave this out and…
davehauser
  • 5,844
  • 4
  • 30
  • 45
1
vote
1 answer

Passwords not working after having to change machine key for VS2015 upgrade

I'm trying to convert a VS2010 Web Site to a VS2015 Web Application (C#). The latest issue I've run into is that VS2015 requires SHA1 or HMACSHA256,384,512. This is an old site, and it used to 3DES. It uses the .NET 2.0 Membership with Encrypted…
John Pasquet
  • 1,824
  • 15
  • 20
1
vote
1 answer

Combine ASP.NET Membership auth and HTTP auth in MVC application

I have an existing ASP.NET MVC 4.5 application that authenticates users via .NET Membership. I would also like to allow optional basic HTTP authentication in lieu of Membership for use by DevOps-type scripts (cache warming, testing, etc.) that can't…
wst
  • 11,681
  • 1
  • 24
  • 39