Which provider are you using? It's not "YAF.NET's database" -- it's called Forms Authentication and YAF is a slave to it. Both MVC and YAF.NET use the same provider. That is the easy part. The hard part is getting single sign on working across sub domains.
Seems your stuck on the abstraction... which seems to be a big problem with understanding Forms Authentication. YAF.NET does not provide the authentication -- ASP.NET does. When you start to think in terms that concept -- it should be easier to understand. The only thing required is that the settings are all the same.
Jaben,
Thanks for your help with this.
I've created an ASP.Net web application, updated the web.config to point to the YAF database, ive added references to the YAF dlls, the project loads and I can login...happy days.
I've then created a simple MVC 3 project updated the webConfig etc...ran the project.....and I can login again...happy days.
Now...
I am trying to create an MVC 4 project, and it wont run as MVC 4 does not use the same provider, rafter a bit of googling Ive realised that MVC 4 is using SimpleMemberShipProvider, im not sure if there is a way round this?
What would be great is a sample MVC 4 project that works with the YAF database....or even just the web config file and account controller!
Thanks again for your help with this, we love the forum!