Questions tagged [custom-membershipprovider]

135 questions
3
votes
2 answers

What is the recommended method for user-specific persistent variable storage in ASP.NET when using a custom membership provider?

I have an ASP.NET application that uses a custom MembershipProvider to allow users to log in and gain access to certain features. The MembershipProvider uses ASP.NET's built-in forms authentication to set cookies and keep track of who the user…
3
votes
2 answers

ASP.NET: Custom MembershipProvider with a custom user table

I've recently started tinkering with ASP.NET MVC, but this question should apply to classic ASP.NET as well. For what it's worth, I don't know very much about forms authentication and membership providers either. I'm trying to write my own…
Deniz Dogan
  • 25,711
  • 35
  • 110
  • 162
3
votes
1 answer

MVC 5 - Is it possible to reuse Custom MembershipProvider

I am migrating an existing application from web forms to MVC 5, and I am looking to re-use our custom membership provider(implementing System.Web.Security.MembershipProvider interface). Jumping to ASP.Net Identity is something we would consider down…
3
votes
1 answer

MVC3 Locking membership user

I want administrators on my site to be capable of locking members out, but the IsLockedOut() for the default mvc membership is readonly. I read that I need to create a custom membership provider, but I am not entirely sure what that means. Do I…
3
votes
1 answer

Custom membership provider and Unity injection

I have created a custom membership provider for my MVC4 solution. The problem is I can't get it injected through Unity. I have tried using constructor injection, but then I get the parameterless constructor error. If I try using InjectionProperty…
3
votes
3 answers

How to configure Ninject for MVC4 & custom Membership provide?

According to this article description custom-membership-provider-with-repository-injection I implement the custom Membership provide with inject. Custom Membership provider using Ninject; public class CustomMembershipProvider :…
3
votes
2 answers

WCF RIA Services Form Authentication ServiceContext.User.Identity.Name Empty

We are using WCF Ria Services with silverlight 5 project.For authentication we are using Custom membership provider.WCF Ria Service in RIA Services class library. Client side authentication running.We access current user name with…
3
votes
1 answer

Orchard cms - custom login module with users in another database

Im evaluating orchard cms for my employer and just wanted to ask a question about login and membership. Our users and their roles are in another database which are exposed via an API and i would need to just get pointed in the right direction if it…
2
votes
2 answers

How to get RoleProvider to Work?

This is a MVC 3 project. Just for testing, I have public class MyRoleProvider : RoleProvider { public override string[] GetRolesForUser(string username) { return new string[] { "0", "1", "2", "4" }; } public override bool…
2
votes
1 answer

ASP.NET MVC 3 custom membership provider with UnitOfWork pattern

I'm having problems to implement CodeFirstMembership provider using a unitofwork pattern. When I tried to inject unitofwork to the constructor of custom MemberShipProvider class, always received the error: "No parameterless constructor defined for…
2
votes
3 answers

Do I need a custom Membership Provider class?

I do not need the Roles stuff. I have only a user with those properties: Id Firstname Last name Institute Street City Postal Country Email Password IsCustomer IsAdmin When the user log into his account instead of doing: if…
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
2
votes
1 answer

Extending Active Directory Membership Provider

I have an ASP.NET web site that will use Active Directory to store Users. There is a requirement to allow users to use their emails as username. Active directory will not allow characters like "@" in the usernames. I created a class to extend the…
2
votes
2 answers

Should I allow emojis in my usernames?

I'm implementing a new user authentication system for my mobile app and was constructing my username rules, i.e. less than 40 characters, alpha-numeric, etc.. when I thought about why I should only limit it to alpha numeric. I don't have any issues…
2
votes
1 answer

How to fine tune a Membership Provider?

After all the answers to my last question about fine-tuning turned out to be more useful than I expected, I thought that I would ask another similar Question about the MembershipProviders as well. Okay, so firstly, to clarify: I know what a…
2
votes
3 answers

Error after update Autofac.Mvc5 from 3.3.2 to 3.3.3

I have a Error after update Autofac.Mvc5 from 3.3.2 to 3.3.3 I posted my issue to github https://github.com/autofac/Autofac/issues/572#issuecomment-63236738 and got response that I need to ask here :) Below my situation: What I have: // Setup DI as…
1
2
3
8 9