I tried adding loginUrl="https://www.mydomain.com/gallery/login.aspx" to the web.config and the login page appeared still using http:. Now the GSP app works if we go ahead and enter
https://www.mydomain.com/gallery when connecting. I do not know of the SSL slows down the file retrieval however. I think that we want to use SSL for the login page to protect our AD passwords and then have it switch back to http: otherwise.
When we select "require SSL" for the IIS Authentication then we get this error if we attempt using http:.
System.Web.HttpException
The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL.
On another site we did edit the 403.4 error page to execute this URL and that works for that site. Still the https: stays active for all of the subsequent request and does not go back to http:.
<!-- beginning of HttpsRedirect.htm file -->
<script type="text/javascript">
function redirectToHttps()
{
var httpURL = window.location.hostname + window.location.pathname;
var httpsURL = "https://" + httpURL ;
window.location = httpsURL ;
}
redirectToHttps();
</script>
<!-- end of HttpsRedirect.htm file -->
This method does not work for us on this GSP app and instead we still get this error:
Exception Type System.Web.HttpException
Message The application is configured to issue secure cookies. These cookies require the browser to issue the request over SSL (https protocol). However, the current request is not over SSL.
Source System.Web
Target Site Void SetAuthCookie(System.String, Boolean, System.String)
Stack Trace at System.Web.Security.FormsAuthentication.SetAuthCookie(String userName, Boolean createPersistentCookie, String strCookiePath)
at System.Web.UI.WebControls.Login.AttemptLogin()
at System.Web.UI.WebControls.Login.OnBubbleEvent(Object source, EventArgs e)
at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)