Not sure if this is the right place to ask this question, apologies if not! Our staging server is protected by basic authentication, but when you've filled in the username and password you get redirected to the login page even though you were trying to view a page that's not protected by forms authentication.
To give an example, if I go to mystagingurl.com/mysecurepage.aspx I first need to fill in the details in the dialog box for the basic authentication, I then get redirected to mystagingurl.com/login.aspx?ReturnUrl=mysecurepage. If I then login it takes me to mysecurepage which is all good. But, if I go to mystagingurl.com/myopenpage.aspx it will redirect me to mystagingurl/com/login.aspx?ReturnUrl=myopenpage even though I don't have to log in to see that page. Is there a way to change this?
Thanks, I have googled and I am familiar with the web.config, I just thought I'd check exactly what your suggestion was before randomly adding and denying users.
Basic and forms authentication redirect
Not sure if this is the right place to ask this question, apologies if not! Our staging server is protected by basic authentication, but when you've filled in the username and password you get redirected to the login page even though you were trying to view a page that's not protected by forms authentication.
To give an example, if I go to mystagingurl.com/mysecurepage.aspx I first need to fill in the details in the dialog box for the basic authentication, I then get redirected to mystagingurl.com/login.aspx?ReturnUrl=mysecurepage. If I then login it takes me to mysecurepage which is all good. But, if I go to mystagingurl.com/myopenpage.aspx it will redirect me to mystagingurl/com/login.aspx?ReturnUrl=myopenpage even though I don't have to log in to see that page. Is there a way to change this?
Thanks!
Nobody? Or is this the wrong forum for this question?
have you tried changing the <authorization> values in the web.config?
What should they be changed to?
I don't know enough about your solution to suggest what they should be. Try doing some Googling or check out this article: http://www.codeproject.com/Articles/301726/Web-config-File-ASP-NET
Thanks, I have googled and I am familiar with the web.config, I just thought I'd check exactly what your suggestion was before randomly adding and denying users.
is working on a reply...