Page 1 of 1

Fatal bug in OracleMembershipProvider

Posted: Wed 03 Mar 2010 15:15
by Alladin
OracleMembershipProvider is unusable.

var u = Membership.Provider.CreateUser("User1", "MyPassword77", "[email protected]", "My Cat?", "Matroskin", true, null, out status);

var authentic = Membership.Provider.ValidateUser("User1", "MyPassword77");


Why authentic is false? Username & Passwords are correct.

PS. Checked with both stable & beta version of drivers...
Oracle 11G x64, Windows 7, VS.NET 2010 RC, .NET 4.

Posted: Wed 03 Mar 2010 17:26
by StanislavK
Please check that the user is successfully created. In this case, 'status' should be equal to MembershipCreateStatus.Success, and the 'u' variable should not be null.

I couldn't reproduce the problem.

Posted: Thu 04 Mar 2010 09:32
by Alladin
Machine Key was not set. Spend 2 days to find out why...

Could you guys kinda throw an exception if you cannot encode/decode password?

Posted: Thu 04 Mar 2010 14:55
by StanislavK
If machineKey is not set, the password is being encoded using the defaults. This may lead to errors in credentials validation, as encryption algorithm may differ. But encoding itself is performed without errors, hence, there are no reasons to throw an exception.