Forms based authentication between 2 applications
-
I am looking for a way to authenticate a user from one web app to be able to access a seperate web app. For instance. I have http://localhost/WEBAPP\_B/ and it will deny all un-authenticated users. But the login form for http://localhost/WEBAPP\_B/ is on http://localhost/WEBAPP\_A/. So far I have tried setting the loginUrl (in Web.config) from WEBAPP_B to WEBAPP_A/Login.aspx and I get forwarded to it, but when i supply the credentials I just get forwarded back to WEBAPP_A/Login.aspx repeatedly. I am assuming the authentication cookie that is written is only good for WEBAPP_A and I remain un-authenticated for WEBAPP_B. So is it possible to create an authentication cookie from WEBAPP_A that WEBAPP_B will accept? Or is there a better way? Any advice or direction is appreciated! Thanks! -sb
-
I am looking for a way to authenticate a user from one web app to be able to access a seperate web app. For instance. I have http://localhost/WEBAPP\_B/ and it will deny all un-authenticated users. But the login form for http://localhost/WEBAPP\_B/ is on http://localhost/WEBAPP\_A/. So far I have tried setting the loginUrl (in Web.config) from WEBAPP_B to WEBAPP_A/Login.aspx and I get forwarded to it, but when i supply the credentials I just get forwarded back to WEBAPP_A/Login.aspx repeatedly. I am assuming the authentication cookie that is written is only good for WEBAPP_A and I remain un-authenticated for WEBAPP_B. So is it possible to create an authentication cookie from WEBAPP_A that WEBAPP_B will accept? Or is there a better way? Any advice or direction is appreciated! Thanks! -sb
I think you have to write you r own custom authentication and set the cookie of authentication yourself and do not use the pre defind methos of Form based authentication.Then you can read it from your both applications and see if user login in that computer or not. Mazy "Improvisation is the touchstone of wit." - Molière