Questions tagged [custom-membershipprovider]

135 questions
0
votes
1 answer

ChangePassword Control doesn't work

Im currently doing an application in .net using c# and I want to use the change password control. The problem is...I always get an error of "Password incorrect or New Password invalid. New Password length minimum: 1. Non-alphanumeric characters…
Gabriel
  • 879
  • 1
  • 13
  • 33
0
votes
2 answers

WCF REST - how best to architect for multiple users but also limit access

I'm new to WCF and REST so please excuse any obvious questions. I'm trying to create a RESTful API that will be used by clients. The API needs to be available only to authenticated users so I believe the best way to do this (from what I've read…
0
votes
1 answer

Asp.net MVC3 + Code First + Custom Membership Users and Provider classes?

I'm using ASP.NET MVC3 with EF Code First. I'm new to both tech, so please be gentle! I have a requirement that I will need additional properties for the User (such as company name, first/last name etc). I also need to be able to store the…
SimpleUser
  • 1,341
  • 2
  • 16
  • 36
0
votes
1 answer

MVC3+Razor template/guidance with custom membership

I'm pretty new to MVC and looking for an MVC3/Razor web project template that uses a custom membership provider (or custom authentication whatsoever). I want the project to contain a SQL database, that has a simple User/Role/UserRole scheme, and the…
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
0
votes
2 answers

ASP.NET MVC3 + JQuery Mobile: Custom Membershipprovider (no logincontrol)

I'm currently rebuilding one of my ASP.NET [Webform] Sites with JQuery Mobile + MVC (Razor Viewengine). Now I'm having problem porting the Membershipprovider to the new technique, because I can't use Webcontrols (LoginControl) anymore. The…
Steav
  • 1,478
  • 13
  • 28
0
votes
1 answer

Validating the user with Membership Provider

I'm customizing a form of validation of the users in my application Asp.net MVC 3. How can I implement the method ValidateUser? My problem is the password for the MembershipUser class (which I also customize) has a Password property. I'm using EF…
0
votes
3 answers

Simple Asp.net Custom Membership Provider

In the past I've used the default SQL Membership provider to secure a website. This worked well but required the creation of the ASP_Authentication database (using the reg_sql tool) and dozens of tables / stored procs etc. I now have a simple…
Rob Bowman
  • 7,632
  • 22
  • 93
  • 200
0
votes
1 answer

Custom Membership Provider - Error in my custom CreateUser Function with different parameters

I want to Create a new User using Custom Membership Provider but I don't want to use the default function that is created. I don't want to use this Public Overrides Function CreateUser(ByVal username As String, …
Mitul
  • 9,734
  • 4
  • 43
  • 60
0
votes
1 answer

NotImplementedException thrown by PasswordFormat in Custom Membership provider

In my Custom member ship provider I have provided implementation for the ValidateUser and things were fine so far but now suddenly PasswordFormat have started throwing NotImplementedException was unhandled by user code There is no change in my…
0
votes
1 answer

Web method returns 401 without calling membership provider

I have a Web Api controller which (partially) looks like this: public class VehicleController : ApiController { [Authorize] public VehicleModel Get(VehicleRequest request) { return VehicleLogic.Get(request); } } A custom…
CompanyDroneFromSector7G
  • 4,291
  • 13
  • 54
  • 97
0
votes
0 answers

Custom Membership Provider ASP.NET with custom database

I have been struggling a few days with creating a simple user authentication to a webapp i am developing. I want a simple login function with logged-in-only pages. I do already have a database with users which i need to use, and this is not a…
Stains
  • 97
  • 1
  • 12
0
votes
1 answer

Disable create/edit/remove users/roles in Episerver with custom MembershipProvider

In a recent web project we needed to implement and use custom Membership/Role providers for Active Directory since we hade some specific cases to handle. We hade no real problems creating and using these providers but we ran into a problem with…
0
votes
0 answers

ASP.NET - Custom Membership Provider - Replace UserName

I'm working with an MVC application and Windows Authentication. I've already implemented a custom role provider which will return an array of roles that it is now pulling from my database. Custom Role Provider (plain) public class CustomRoleProvider…
0
votes
1 answer

Why is pgProvider throwing an exception?

I'm attempting to use pgProvider as part of a move to Postgresql to get membership working in a .NET MVC4 web app, however I keep encountering the following error: ERROR: 42P01: relation "versions" does not exist So far I've set up the web.config…
0
votes
1 answer

How to override ValidateUser in Membership provider method

By default Membership provider has a static method ValidateUser with parameter .Is there a way to add an overloading method to Membership provider for ValidateUser with three parameter. There parameter is Boolean which will decided user is teacher…
1 2 3
8 9