I have a webapp that has a frontoffice that uses Symfony2, and a backoffice that uses ASP.NET MVC4 (before you tell me, yes, I know this is a ridiculous setting, but these are restrictions that we must adhere to) .
Now I would like to have one user table in my database from which users can log in to both frontoffice (SF2) and backoffice (MVC4). I use FOSUserBundle to manage my users on the Symfony2 side, but I have not decided which membership provider I should use for the MVC4 application part, mainly because I have no idea how to authenticate users on the ASP side.
FOSUserBundle uses SHA512 with 5000 iterations for user registration / password change. Both the hashed password and the salt of passwords are stored in the database - all this works fine. The problem is that I'm not sure how I should use this data in an MVC4 application; I did some research to find out if I can change the hashing algorithm, etc., but it requires me to create a custom membership provider, which is a little daunting for those who have not worked with MVC4 before.
Can someone point me in the right direction? It would be very grateful.
source share