Questions tagged [custom-membershipprovider]

135 questions
0
votes
1 answer

Why does login redirect fail in MVC when using a FormsAuthentication CustomIdentity and updating AuthTicket UserData?

Using forms authentication, I am filling the UserData field with a serialized CustomIdentitySerializer object. The user logs in, and I have verified that Membership.ValidateUser() works just fine. I then begin populating the CustomIdentitySerializer…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
0
votes
1 answer

I am facing "Your login attempt was not successful" Please try again. error while implementing custom membership

My requirement of application is single application & multiple databases for each client. So I implemented custom membership to achieve this. First I check user belongs to which Client the according to connection string of that client's db I…
0
votes
1 answer

Oracle Membership

I'm trying to implement membership with oracle. I have created the database perfectly, but I can not access from my App. The database is on a dadicated server, and the error that its shows me is "OracleConnection.ConnectionString is invalid" but I…
0
votes
1 answer

how to apply Roles and Membership classes' methods on user defined SQL tables

I have been using ASP.NET Roles/Membership classes and associated methods in ASP.NET Website application. Where I have configured ASP.NET membership database. With this database, I am able to use all those methods associated with Membership and…
0
votes
0 answers

how can I make Elmah.io integrate with my custom membership provider in asp.net MVC?

I installed Elmah.io properly but it doesnt work. Visual studio gives 6 messages like; Could not find schema information for the element 'security' and 'errorlog' and 'elmah' and 'type' and logid and 'allowremoteaccess' . how can i make it…
cinfis
  • 345
  • 4
  • 14
0
votes
2 answers

Whats the right way to implement a login form in MVC?

I've been looking into building a custom MembershipProvider, and also an AccountController... and I'm just wondering, what's the right way to build a user login function into an MVC web application? I can see how to build something using an…
0
votes
1 answer

Dynamic access to actionresults

Allow users with roles to access controller methods dynamically. I have a typical scenario where I want to allow users to access the pages dynamically as the prvilege set to each roles can be change by a userinterface. I have three actionresult…
0
votes
2 answers

Get rid of case sensitive username in custom membership provider

I implemented a custom membership provider in ASP.net MVC, and can't figure out how to make the username non case-sensitive at signin. So, for example, "Solomon" could log in, but "solomon" could not. My implementation is very bare bones. I…
0
votes
1 answer

CustomMembershipProvider not working from Unit testing

Writing unit tests that require database access via my CustomMembershipProvider. edit - public class CustomMembershipProvider : MembershipProvider { public override bool ValidateUser(string username, string password) { …
0
votes
1 answer

Custom Membership provider vs. Default Membership proider in Mvc. What to choose?

Im in the middle of creating a MVC 4 web site and need to make use of some sort of membership provider. I have been following some tutorials about custom membership providers, but I have also been reading about just using the default one... And now…
0
votes
2 answers

ASP.NET web.config Could not find the specified membership provider

I got this error message Could not find the specified membership provider Here's my web.config setting:
Tola
  • 2,401
  • 10
  • 36
  • 60
0
votes
1 answer

Upgrading from MVC3 to MVC4 and Custom Membership provider changes

I have recently upgraded my MVC3 application to MVC4 successfully. In my old MVC3 application, I had a custom membership provider written to read/write user details, into custom tables within a Sql Server database. The upgraded MVC4 application…
SimpleUser
  • 1,341
  • 2
  • 16
  • 36
0
votes
2 answers

How to correct issue with user being redirected to login after successful, but not to user page?

In MVC4, I created a custom membership provider that returns true if the user authentication passes. No biggie here - this portion works the way it should: public override bool ValidateUser(string username, string password) { var…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
0
votes
1 answer

Can't create a MembershipUser during MembershipProvider Initialize?

In my custom implementation of a MembershipProvider, during the Initialize method, I am constructing a number of MembershipUser objects. The MembershipUser constructor is given the name of the MembershipProvider being initialized. The problem is…
0
votes
1 answer

Specifying password field to SimpleMembershipProvider

I'm implementing SimpleMembershipProvider in a small MVC4 project, and I can already initialize the database connection using a customer-provided DB with the user and role tables already specified (those are called sp_person and sp_role). The…
Léster
  • 1,177
  • 1
  • 17
  • 39
1 2 3
8
9