JSkimming / AspNet.Identity.EntityFramework.Multitenant

Multi-tenant support for ASP.NET Identity using Entity Framework
Apache License 2.0
132 stars 61 forks source link

Invalid Column Name TenantId calling CreateIdentity() #1

Closed gardavis closed 10 years ago

gardavis commented 10 years ago

I attempted to combine the Multitenant code with the SimpleSecurity project (https://simplesecurity.codeplex.com/) (AspNetIdentity code). I was able to register a new account but when I try to log on, I get a sql error that the TenantId column can not be found. The column is in the AspNetUsers table and is correctly set.

The SimpleSecurity (WebSecurity.cs - see attachment) first calls FindUser which does find the user record. Then it calls the userManager.CreateIdentity() which is what traps.

Any ideas?

Thanks, Gary Davis

errortenantid

JSkimming commented 10 years ago

@gardavis Apologies for the delay in replying, I missed the notification.

I'm not familiar with SimpleSecurity, is it attempting to make use of the standards membership providers to work with the new ASP.NET Identity? That's not a scenario I was trying to handle.

I can't really provide much help based on your code screen shots, but if you provide an example repo I'll certainty have a look.

JSkimming commented 10 years ago

Hi @gardavis I'm going to close this issue, if you're able to provide an example repo, I'll reopen it.