I am using this method to ensure authentication on app-A, when not authenticated it redirects to app-B to login. Well this method passes a returnURL of just the .aspx page (i.e. /default.aspx) the problem is when it does redirect, it does so to app-B. I need it to redirect to app-A/default.aspx. Is there a way to specify the sub domain of the redirect that SPUtility.EnsureAuthentication uses? Maybe manually specify in the web.config forms auth. section?
EDIT: I thought I might pass an SPWeb object sort of like this:
SPWeb web = SPContext.Current.Web;
SPUtility.EnsureAuthentication(web);
but it didn't work. I am not quite sure how the override with SPWeb object works. I thought that it acted as a reference to the site collection needed to return to, but I guess I was wrong. Can anyone shed some light on how the override works, or a work around for my issue?
Thanks in advance
...
Go to the complete details ...