asp.net - Azure hosted website - FormsAuthentication not routing to defaultUrl -
asp.net - Azure hosted website - FormsAuthentication not routing to defaultUrl -
i have next setup in web.config
:
<authentication mode="forms"> <forms loginurl="landing/login.aspx" defaulturl="~/member/dashboard.aspx"> <credentials passwordformat="sha1"></credentials> </forms> </authentication> <authorization> <deny users="?" /> </authorization>
this correctly redirects when testing on locahost, when published azure, logging in redirects http://mysite.azurewebsites.net/
, not http://mysite.azurewebsites.net/member/dashboard.aspx
described in web.config. interestingly enough, however, trying navigate page without logging in correctly redirects defined loginurl="landing/login.aspx"
. should using fqdn in case defaulturl
? forms authentication not setup on iis of azure server? please advise.
asp.net azure forms-authentication
Comments
Post a Comment