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

Simple yet Dynamic MVC Authentication & Role Bases Access

I've recently migrated from traditional ASP.Net web-form based development to MVC2 and I've been looking for the best practices and norms that MVC can leverage to create a long-term maintainable web solution. I've arrived at the implementation of…
1
vote
0 answers

How to read roles from database instead of web config in Role-Based Authorization asp.net?

We are working with an old designed system that is Role-Based and reads users roles from webconfig as follows:
Abolfazl
  • 1,592
  • 11
  • 32
1
vote
5 answers

advantages of .net over java in Intranet

Our company has an intranet with 30,000+ web pages and 160+ web applications. This is being used by 5000+ employees. We also have internet with 150+ Web applications and 100+ websites. Both the internet and Intranet is 7+ years and they run on…
Shoban
  • 22,920
  • 8
  • 63
  • 107
1
vote
2 answers

ASP.NET MVC, Forms Authentication, and Session

I would like to execute the below line when the user logs in so that I have access to the MembershipUser object. However I am having a hard time figuring out when to set it. Session["User"] = Membership.GetUser(); So far I've…
Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447
1
vote
2 answers

Active Directory Authentication & Custom Roles

I havent worked on ActiveDirectory Membership provider earlier, I have a doubt on creating an application using AD membership provider. If I need to foreign reference a user in a different table(lets say a custom role table ) then what primary…
Kunal
  • 1,913
  • 6
  • 29
  • 45
1
vote
2 answers

Using roles in Asp.Net MemeberShip?

Well, the question is simple. how can i use the roles in asp.net memebership, i know i can do something like that : //Allows users in Admin role // deny everyone…
Alon M
  • 1,583
  • 7
  • 30
  • 44
1
vote
2 answers

ASP.NET Login Problem

I have created a WebSite in ASP.Net(Not Mvc. i forgot the other name). After finishing the web. I am clicking on the "Build" button, trying to register to the website on a normal asp.net register form, and i am geting this error: An error occurred…
Alon M
  • 1,583
  • 7
  • 30
  • 44
1
vote
2 answers

LoginControl not working correctly with Firefox, requires double login attempt

Any idea why LoginControl requires users authenticate twice with FireFox but works correctly (once) with IE? I am using a custom MembershipProvider and RoleProvider, if that matters. Authentication portion of my web.config;
CmdrTallen
  • 2,264
  • 4
  • 28
  • 50
1
vote
1 answer

ASP.NET Membership Database in multiple apps - stay logged in on multiple apps at the same time

I am currently using asp.net membership database on multiple apps. I am not looking for single sign on function. My desire is to be able to logged in at the same time on multiple apps. But currently, when I log into one app, the other one is logged…
tugberk
  • 57,477
  • 67
  • 243
  • 335
1
vote
2 answers

Unable to load my custom membership provider?

I was trying to implement a custom membership provider, everything goes well, I can connect, I can change user details, but as soon as I create user, I got this error when it tries to get the user after I complete create a user. The error is coming…
PlayKid
  • 1,345
  • 5
  • 20
  • 33
1
vote
0 answers

ASP.NET Membership Password Recovery E-mail

I'm trying to use the out-of-the-box ASP.NET PasswordRecovery control, but I want to customize the email that's sent to the user, essentially translating it for different language users. I understand that I can specify MailDefinition-Subject and…
QMKevin
  • 1,101
  • 3
  • 13
  • 26
1
vote
2 answers

WCF authentication with ASP.NET membership, role and profile

I have a WCF service which is hosted in IIS 7.0/7.5 inside of a ASP.NET MVC web application (by using an .svc file with ServiceHost directive). The security settings in my configuration are looking like this:
Slauma
  • 175,098
  • 59
  • 401
  • 420
1
vote
3 answers

.NET Membership Login ReturnUrl Override

I was wondering if anyone knows a proper/best practice way of overriding the url of where the page takes you after you successfully login. I tried this: protected void Login1_LoggedIn(object sender, EventArgs e) { if…
DavidS
  • 249
  • 5
  • 12
1
vote
2 answers

Storing additional information in user identity in ASP.NET MVC application

I have created my own MembershipProvider for my ASP.NET MVC 3 application and have it working great. Once logged in, I can call the logged in user's username by requesting System.Web.HttpContext.Current.User.Identity.Name. I'd like to store some…
Nick
  • 5,844
  • 11
  • 52
  • 98
1
vote
1 answer

ASP.net membership provider - Can I switch from Microsoft Access to SQL Server?

The asp.net membership provider uses access database. Would it be possible to use a mssql server to store this instead? Seems odd for me to use a seperate access db instead of putting everything inside my current mssql server.
Andreas
  • 301
  • 1
  • 4
  • 16