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
1 answer

Ionic/Angular Auth from ASP.net Membership DB

Im looking to create an Angular 4 app or possibly an Ionic app. The problem i face is im a bit unsure how to implement the authentication. i currenctly have an asp.net webforms site that uses the asp.net membership db. i would like to make use of…
1
vote
1 answer

.Net Identity 3 on existing solution

I believe that .NET Identity 3 cannot run on an existing (v4.5) ASP.NET solution, but requires .NET Core. I cannot update to .NET Core. Is there a workaround for this? If not then how are people supposed to migrate from ASP.NET Membership to ASP.Net…
1
vote
1 answer

ASP.NET MVC : Using the same database for Entity Framework and ASP.NET Membership

Im trying to user ASP.NET MVC3 with Entity Framework and ASP.NET Membership for authentication. I've set up an existing database as my application services database for membership. When i create the entity data model through the wizard it adds the…
1
vote
4 answers

Is it possible to use an IOC container to instantiate a custom MembershipProvider?

I'm using Autofac with ASP.NET MVC so all my controllers have their dependencies resolved nicely. But I have a custom membership provider with two dependencies. I suspect that the code to instantiate the membership provider is deep in ASP.NET, miles…
Typo Johnson
  • 5,974
  • 6
  • 29
  • 40
1
vote
1 answer

C# swap between connection strings web.config Membership provider

In the application we have 2 connection strings for membership provider. We create users based on the 2 connection strings and their properties: minRequiredNonalphanumericCharacters="2" minRequiredPasswordLength="8" maxInvalidPasswordAttempts="5"…
1
vote
2 answers

ASP.NET Membership user login error cookie problems

We recently updated a site from Classic ASP to ASP.Net 3.5. The old site used a login system based on cookies. It would remember the users login information if a checkbox was selected when they first logged in. This would of course be done in a…
TroySteven
  • 4,885
  • 4
  • 32
  • 50
1
vote
3 answers

Have ADFS authenticate against ASP.NET Membership database

Is it possible to make make ADFS to authenticate a user against an ASP.NET Membership database in SQL Server? Alternatively can a .NET C# plug-in be created and installed in ADFS which could provide this "service" to ADFS?
1
vote
1 answer

Two different ASP.Net Membership providers on the same web-solution

I have built two websites, both of them use a custom membership provider I have written myself. One of these sites is already a long time online and runs fine. Now I have installed the other site on the same webserver in the same Web as a…
HCL
  • 36,053
  • 27
  • 163
  • 213
1
vote
3 answers

Use email address instead of username with ASP.NET Forms authentication

I'm starting a brand new ASP.NET MVC application using the built in "Internet application" template. How can I set it up to allow login using email address & password instead of username & password?
Matt Frear
  • 52,283
  • 12
  • 78
  • 86
1
vote
3 answers

OnLoggedIn event on Login page ASP.NET

I want to redirect people according to their role in the asp.net membership provider. I have some code in 'OnLoggedIn' event on the login page. Here is what I tried so far, and nothing doesn't work: The code below returns false on the…
Laziale
  • 7,965
  • 46
  • 146
  • 262
1
vote
1 answer

Secure individual pages with asp.net membership provider

I'm using the asp.net membership and role provider tools and can't figure out how to require login for specific pages. I tried putting the pages in a seperate directory and adding this to my web.config but it still denies access after succesful…
Clint
  • 11
  • 2
1
vote
3 answers

User management with aspnet membership provider

Just a general question really. I have taken on the management of an application written in C# MVC that uses the asp.net membership api. With this a user can register, change their password, etc. My application consists of two areas, administrator…
109221793
  • 16,477
  • 38
  • 108
  • 160
1
vote
2 answers

Ideal Janrain integration with existing ASP.NET membership database

I've got Janrain working for SSO and no problems there. But once I get the user's identification and put it into the ASP.NET membership database, don't I also need to set a password? I guess I can put in a dummy password for each user, but that…
Jenn Rain
  • 11
  • 1
1
vote
3 answers

Membership provider deployment issue

I am trying to deploy a asp.net mvc site. My hosting service provider provides me dsn database connection for my sql server 2008 database. I changed my web.config to use dsn connection using this modification in web.config.
Tassadaque
  • 8,129
  • 13
  • 57
  • 89
1
vote
1 answer

Associating multiple e-mail addresses with ASP.NET MembershipProvider accounts

For a project I am currently working on, I am interested in allowing users to provide multiple e-mail addresses, both for contact purposes as well as providing address book-based social matching. I plan to write a custom membership provider…
Chris Charabaruk
  • 4,367
  • 2
  • 30
  • 57