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

Why is the MembershipProvider not generating a unique salt?

I'm experimenting with using the Asp.Net SqlMembershipProvider, and am noticing in the aspnet_Membership table that the PasswordSalt field has the exact same value for every entry. Now, I am using the same password for every user in my testing, but…
Random
  • 1,896
  • 3
  • 21
  • 33
1
vote
1 answer

How do I code a RoleProvider against a datastore that doesn't define roles?

I'm looking at writing a custom RoleProvider to talk to an external third-party system. However, the "roles" I need aren't explicitly defined in the system but are instead based on conditions within the system. For example, a role might be defined…
Peeyotch
  • 33
  • 4
1
vote
4 answers

Role based authorization

I am trying to use Role based authorization in declarative way, when unauthorized user attempt to access a page, it never fire an exception or show the user an error message. What I should do to show unauthorized message? is that possible in…
Costa
  • 3,897
  • 13
  • 48
  • 81
1
vote
1 answer

Problem with custom MembershipProvider in SharePoint 2010

I'm having a problem getting a custom membership provider to work in SharePoint. The login page is displayed, but when I enter any credentials - right or wrong - I get the following error: The given assembly name or codebase was invalid. (Exception…
1
vote
1 answer

Can I use the authorization rule (web.config) with Identity

I am migrating an old application that use the SqlMemberShipProvider and have a lot of authorization rules. e.g.
amd
  • 20,637
  • 6
  • 49
  • 67
1
vote
0 answers

Extending Umbraco ProfileModel with custom member model

I have the following code while updating the member account detail information: /// /// Verifies and edits the member fields. /// /// /// MemberDetailsFormViewModel containing all the…
Marko Jovanov
  • 418
  • 10
  • 25
1
vote
2 answers

ASP.NET Membership Authentication in WCF service

I am trying to extend an existing ASP.NET application with a WCF service. The service must require authentication via the same Membership Provider that the rest of the site uses. Here's the web.config file:
Impworks
  • 2,647
  • 3
  • 25
  • 53
1
vote
3 answers

ASP.NET Memberships. Is it extensible?

I add the Property "WebSite" as a property of a registered user.
Chad
  • 23,658
  • 51
  • 191
  • 321
1
vote
1 answer

Get user.Identity.GetUserId() always null

I am using asp.net membership. I have login successfully but when I have access user than user.Identity.GetUserId() always null. this is my login code. var signinManager =…
Vishal Kiri
  • 1,248
  • 1
  • 12
  • 24
1
vote
1 answer

Decrypt ASP.NET Membership Passwords from Console App

I have an ASP.NET membership database and I need to decrypt the encrypted passwords. I would like to do this via PowerShell or C#. I have the salt, machine key, and the encrypted password string. This is an example of what I have so far but I don't…
Fubak
  • 107
  • 1
  • 11
1
vote
1 answer

How do I prevent duplicate membership users when using multiple roleproviders with different application names?

I have a single membership provider which is using the '/' default application name. I then have multiple applications which share this common membership provider configuration. Each application has it's own role provider configuration, they all…
Brian Scott
  • 9,221
  • 6
  • 47
  • 68
1
vote
2 answers

ASP membership services is ALWAYS creating two accounts

I am using the ASP membership services to create and manage users. I notice that on user account registration everything works fine... Until I call Roles.AddUserToRole, and suddenly I get a second user account created in the aspnet_users table. Can…
LoneRanger
  • 1,909
  • 2
  • 13
  • 13
1
vote
1 answer

ASP.NET How to Apply Roles & Members Read/Write Securtiy to Pages, Sections, Fields, & Records

I've built a number sites using classic ASP type security and have continued using the same methods in ASP.NET. However, I now am looking for recommendations for a better or best practice way of doing it. I've read a few resource online but have…
ptownbro
  • 1,240
  • 3
  • 26
  • 44
1
vote
1 answer

Server Error in '/asp.netwebadminfiles' Application - VS 2013

I'm working with ASP.Net web application and i want to create a membership user so i have to access the Web Configuration Tool for ASP.NET . i have run IISExpress commands in Prompt and it's works fine but whenever i run the…
1
vote
2 answers

Setting up Membership/Login using Visual Web Developer & ASP.NET

I'm following this tutorial: http://msdn.microsoft.com/en-au/library/879kf95c.aspx And there seems to be a lot of information missing. It doesn't tell me how to upload the database to my server etc. I remember following this tutorial last year, and…
anon271334
1 2 3
99
100