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

Sql Membership for ASP.NET, Learning Resources

I am quite a beginner to ASP.NET. Recently, I started to learn ASP.NET WebForm. I created a web application where I needed to implement the login and registration form. Could you tell me about the best resources (book, video, tutorial, etc...) to…
Usman
  • 13
  • 2
1
vote
1 answer

How to create a new user in aspnetdb, when using asp:login control

I need to add the capability to create a user in an app built using the asp:Login control. How do I do this?
BreakHead
  • 10,480
  • 36
  • 112
  • 165
1
vote
1 answer

ASP.NET MVC Membership and multiple accounts for the same company

Currently we support one single account per customer. This means that we have a Profile associated with the membership UserID that contains all the company data. We now need to allow multiple account for single customer. The scenario is the…
abenci
  • 8,422
  • 19
  • 69
  • 134
1
vote
2 answers

Managing users when using a stand alone database as the membership provider

When using a stand alone database as a membership provider, is it usual to then have an application specific users table in the database serving the application? For example say I have an application that manages messages for a user. Normally I…
Chin
  • 12,582
  • 38
  • 102
  • 152
1
vote
1 answer

Grouping roles in custom membership provider in ASP.Net MVC 2

Maybe I'm using the wrong terms, but I've been Googling for two days and just can't find anything on this: grouping roles/permissions. Or maybe I don't quite understand membership in the ASP.Net model. Currently I have a homegrown authentication…
Nathan Loding
  • 3,185
  • 2
  • 37
  • 43
1
vote
2 answers

User.Identity.Name = "" but user is authenticated. possible?

protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated) { Response.Redirect("~/login.aspx?ReturnUrl=userLevel.aspx"); } if (!IsPostBack) { if (Request.Form["action"] ==…
Eli Cohen
  • 131
  • 1
  • 10
1
vote
1 answer

ProfileCommon.GetProfile(string)' hides inherited member '.UserProfile.GetProfile(string)'. Use the new keyword if hiding was intended

I am using aspnet membership profile and Inherited the profileBase class to a class name UserProfile, where I have defined the method GetProfile. Everything working fine But while build getting the above warning. Please help how to remove the…
1
vote
2 answers

Limiting Access to "Functional Modules" in ASP.NET MVC

I am building a site in ASP.NET 4 and MVC2 that will have premium features, such as SMS notifications that will only be available to paid subscribers. I also have additional modules for things like Inventory, and Transactions etc I am already…
Boycs
  • 5,610
  • 2
  • 28
  • 23
1
vote
1 answer

How to manage significant functionality differences between user types in ASP.NET MVC2

I think I may have made a mess of my controllers. I have a fairly simple site that allows users of type "Staff" or "Client" to view Projects. Staff have access to all projects, can add and delete them, add and delete users, assign clients permission…
George R
  • 3,784
  • 3
  • 34
  • 38
1
vote
2 answers

Class design decision

I have a little dilemma that maybe you can help me sort out. I've been working today in modifying ASP.NET's Membership to add a level of indirection. Basically, ASP.NET's Membership supports Users and Roles, leaving all authorization rules to be…
juan
  • 80,295
  • 52
  • 162
  • 195
1
vote
1 answer

User.Identity.IsAuthenticated is always false

I am using Membership provider but how do I get my username and password to login/signin? When I check to see with this code: if (User.Identity.IsAuthenticated) // this code always returns false I have this before when the user uses asp:Login to…
cdub
  • 24,555
  • 57
  • 174
  • 303
1
vote
2 answers

login with asp.net membership cross domain authentication

I am using one membership database for different domain. When I login in one domain, I want to automatically also perform a login for different domain in same browser.
k test
  • 23
  • 4
1
vote
0 answers

Where does User in MVC controller come from?

I am working on a website that has multiple applications, one of them uses asp.net membership. In another application I want to get the name of the current user, so I added the following to the web.config so I can get 'User.Identity.Name', note that…
1
vote
1 answer

ASP.NET Membership - Two providers on site

Our site has got two ASP.NET membership providers. The built in one, and a custom one (SqlMembershipProvider. I am able to log into both no problems, but I don't necessary require the ability to have both logged in at the same time. The issue I have…
Danny
  • 11
  • 1
1
vote
1 answer

Webmatrix.WebData.WebSecurity with MySql is not working. Throwing sql syntax error in WebSecurity.UserExists() check

I had a project done in MSSQL. I migrated MSSQL to MySql because i thought Webmatrix.WebData will support MySql also. WebSecurity initialiation was successful. if (!WebSecurity.Initialized) { securityService.Initialize( …
Manu Mohan
  • 1,694
  • 2
  • 20
  • 31