Questions tagged [custom-membershipprovider]
135 questions
1
vote
2 answers
Custom membership implementation
I always used my own code to create logins and registers but using memberships should save me a lot of time in programming these things in my following projects.
Now i've found many tutorials on implementing your own custom membership and some of…

Jamie
- 3,031
- 5
- 36
- 59
1
vote
1 answer
Custom Membership Provider won't redirect
I have setup a custom membership and role provider that is not currently working as it should. I suspect that I have missed something but with all my research I have not been able to work out what it is.
The problem that is occurring is that when I…

Ian Durward
- 25
- 5
1
vote
1 answer
MVC Custom Membership Provider and AccountController.cs
I have implemented my own custom MembershipProvider, configured it within web.config and my initialize method is successfully being called, even though it only contains:
public override void Initialize(string name, NameValueCollection config)
…

Aaron
- 1,802
- 3
- 23
- 50
1
vote
1 answer
Custom MembershipProvider with Web interface and DAL
I'm working on an ASP.NET solution with 2 projects. One is the web interface and the other contains my business logic. I'm using LINQ to SQL for my data access in the second project.
Apart of my database, I have a table called Users which holds user…

Mike
- 1,532
- 3
- 21
- 45
1
vote
2 answers
WebSecurity.Login not working
I'm having a problem with my Custom Membership provider, which extends ExtendedMembershipProvider.
After Running WebSecurity.Login, which successfully executes my Implemented Validate method, the User.Identity.IsAuthenticated is not set.
But…

Juanu
- 530
- 9
- 23
1
vote
1 answer
When SimpleMembershipProvider is not the default provider
When you have multiple membership providers configured, like:

stevev
- 65
- 5
1
vote
1 answer
Which Membership and Role Provider methods should I override for Authorize attribute?
To use [Authorize], [Authorize(Roles="")], [Authorize(Users="")] attributes, which methods should I override in MembershipProvider and RoleProvider?
public class CustomMembershipProvider : MembershipProvider
{
// which methods are required?
…

AliRıza Adıyahşi
- 15,658
- 24
- 115
- 197
1
vote
1 answer
Object reference not set to an instance of an object, Unity Dependency Resolver
My IUserService is null, not sure what's going on.
This is my AccountController:
private readonly ICustomMembershipProvider _membershipProvider;
public AccountController(ICustomMembershipProvider provider)
{
_membershipProvider =…

SOfanatic
- 5,523
- 5
- 36
- 57
1
vote
1 answer
Custom Create User in ASP.net MVC 4
I have made an asp.net MVC 4 Internet application. I wanted to have custom Create User function. So I used CreateUser function of MembershipProvider class and added configuration in my web.config.
But The problem is when I run the code…

Bardia
- 393
- 4
- 11
1
vote
1 answer
Custom Role Provider not triggering in webservice

Theun Arbeider
- 5,259
- 11
- 45
- 68
1
vote
1 answer
Email Verification Issue with UserID
I am trying to use create user wizard in asp.net for creating new accounts based on this article www.4guysfromrolla.com/articles/062508-1.aspx, disabled his account for immediate login and send email immediately after registration to the concerned…

Kitty
- 300
- 3
- 12
1
vote
3 answers
Does asp.net membership really provide a secure and robust solution for login, authentication, authorization of web applications?
I heard that the hashing algorithm for asp.net membership is sha-1, but I've seen in most articles that it is no longer safe, also I would like to know if most professional developers are using asp.net membership or do they come up with their own…

Randel Ramirez
- 3,671
- 20
- 49
- 63
1
vote
1 answer
Custom Membership Provider with Entity Framework
I have a MVC web application that I am using my own membership provider. I have implemented the Entity Framework with POCO’s, repositories, and a unit of work to both the MVC app and the Custom Membership Provider.
I am finding that when the data…

Jeff Pearce
- 581
- 7
- 15
1
vote
1 answer
Get user group in Membership.ValidateUser
I'm using Form Authentication and Membership provider. When I call Membership.ValidateUser(logon.UserName,logon.Password), it's only returning a boolean which indicates whether this user is valid. But I want the User to be returned. How can I do…

orange
- 720
- 3
- 11
- 27
1
vote
1 answer
Multi-tenancy with MVC3 and Custom Membership Provider
I have a question regarding Multi-tenancy (with MVC3, EF) and a custom SQL Membership provider.
I have custom User and Roles membership classes created, since I have to include the userId in my application tables along with additional user based…

SimpleUser
- 1,341
- 2
- 16
- 36