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

ASP.NET - Validate a user without logging them in?

Is it possible to validate a user's Username + Password without logging them in? I understand a usual login block will look like this: if (!Page.IsValid) return; if (Membership.ValidateUser(UsernameInput.Text, PasswordInput.Text)) { …
Overflew
  • 7,872
  • 10
  • 45
  • 65
1
vote
2 answers

ASP.NET MVC: is there any other way apply to role to an application but decorating its controllers/actions with attributes?

When using WSAT with a ASP.NET webform application, it's possible to create a new role, add/remove users to/from it, and (most importantly) define rules that apply for that role; i.e. you have a folder tree that allows you to choose which folder you…
Richard77
  • 20,343
  • 46
  • 150
  • 252
1
vote
0 answers

unit testing login Api controller with form authentication

I am writing unit test case for Web API application. where I have login API controller. Login controller use Form authentication. _tokenServices = (ITokenServices)_unityResolver.GetService(typeof(ITokenServices)); AccountsApiController…
1
vote
2 answers

Insert asp.net Membership-generated UserId into custom table (vb)

I've spent a couple of hours trying to find the answer to this, and although there are tutorials all over the 'net none of them work for me (or I am too n00b to understand what they're telling me...) Anyway, I'm creating users in asp.net using…
melat0nin
  • 860
  • 1
  • 16
  • 37
1
vote
2 answers

Create the Provider db tables after RecreateDatabaseIfModelChanges

I'm new to EF4, usign CPT4 Code-First and SQLExpress (MVC2 + Ninject but does not matter). It's working good but I do have one question/problem. When I change my model the database get drop and created back because I added this line in my…
VinnyG
  • 6,883
  • 7
  • 58
  • 76
1
vote
2 answers

Error Asp.net Membership Provider when adding user

The error message below i get when I"m trying to create a new user in a project management system we use for a client. I type in all the corresponding information then when I click create it throws this error. The following message may help in…
n_starnes
  • 376
  • 1
  • 6
  • 20
1
vote
1 answer

Multiple role based folder authorization in asp.net web.config

In my application I have multiple folder which have multiple webpage. I am using Asp.net membership identity for authentication. I have designed different folder for different task. Every folder has its web.config file which is used for role access…
1
vote
4 answers

Simple user/password protection in asp.net MVC

a very simple problem, maybe someone has a tip for a MVC Beginner like me. I want to Password protect an MVC Application - just on user / password is necessary - I did it via ASPNETDB and SqlMembershipProvider, but there should be hopefully an…
Tobias Pirzer
  • 1,005
  • 10
  • 13
1
vote
2 answers

Add my own login to Umbraco

Im using Umbraco 7 and would like to integrate my own systems login facility into Umbraco 7 (WinForms not MVC) but at the same time use the current Umbraco login facility to allow admin staff to login as usual into Umbraco and make changes. When i…
Computer
  • 2,149
  • 7
  • 34
  • 71
1
vote
2 answers

ASP.Net Membership Error CREATE DATABASE failed. Some file names listed could not be created. Check related errors

I am trying to add AP.Net membership to my database. I have had success with this in the past so I have some idea of what I am doing. My project is a VB.Net website with Framework 4.5.2. I used asp_regsql.exe in framework 4 to add the schema to my…
Dan Wier
  • 334
  • 5
  • 16
1
vote
1 answer

Connect Asp membership 4.5.2 to existing ASP membership 4.0 SQL DB

I have an ASP project that is using .net framework 4.0 and using membership. I made a new project with framework 4.5.2 using membership on another DB. Now I want to connect the 4.5.2 project to the old membership DB but it always gives me wrong…
1
vote
2 answers

Prevent multiple connection from the same username

I am using the provided ASP.NET SQL Membership & Role providers in my application. How can I prevent that the same user does login from different workstations using the same credentials? I can imagine to use the IP address for this but I dont…
Lorenzo
  • 29,081
  • 49
  • 125
  • 222
1
vote
2 answers

Active Directory Membership Provider works only for the Administrator

Good day, I am pulling my hair on this one.. I have Active Directory Memebership Provider configured like this:
dexter
  • 7,063
  • 9
  • 54
  • 71
1
vote
1 answer

How to access ASP.Net Session object outside the web project (class library)

I am implementing a custom membership and role providers where I need to store all the role/membership information in the user's session. I am implementing these custom providers inside a class library project (different from the website project)…
Moiz Tankiwala
  • 6,070
  • 7
  • 38
  • 51
1
vote
3 answers

ASP.NET Membership Provider authentication not working authenticating WCF Service

I have a SqlMembershipProvider store with Roles enabled. This is configured and has the user "devtest" in the roles "xxUser" and "xxAdmin". I also have a WCF service, which I want to authenticate and authorize against. My problem is that: the…
Program.X
  • 7,250
  • 12
  • 49
  • 83