ventaur / securityswitch

Security Switch enables various ASP.NET applications to automatically switch requests for pages/resources between the HTTP and HTTPS protocols without the need to write absolute URLs in HTML markup.
Other
2 stars 0 forks source link

securityswitch has not effect whatsoever #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Added SecuritySwitch.dll to bin folder
2. Make the necessary entries in web.config.
3. Add a path like <add path="http://localhost/WebApplication/Login.aspx" />
4. Navigate to Login.aspx

What is the expected output? What do you see instead?
I expect a secure url to be opened. Instead I get the insecure url opened. 

What version of the product are you using? On what operating system?
v3.1.3.0, Windows 7 Ultimate

Please provide any additional information below.

IIS 7.5, Installed self-signed certificate, Reqiure SSL is OFF

Original issue reported on code.google.com by wealthan...@googlemail.com on 24 Jun 2011 at 1:26

GoogleCodeExporter commented 9 years ago
Try changing your path to a root-relative path, like the following:

<add path="~/Login.aspx" />

Original comment by vent...@gmail.com on 24 Jun 2011 at 9:19

GoogleCodeExporter commented 9 years ago
Thanks for your suggestion.

I tried that and all possible variations. That is why I ended up with the 
absolute URL. If I look in the debugger I can see the module is being loaded 
but ignoring my configuration.

I downloaded the v3.1 source code from 
http://www.codeproject.com/KB/web-security/WebPageSecurity_v2.aspx and that is 
working; though I am getting javascript exception.

Original comment by wealthan...@googlemail.com on 25 Jun 2011 at 11:02

GoogleCodeExporter commented 9 years ago
Sorry. I just saw that you were using version 3. Did you try setting the path 
without any rooting at all? The old version assumes the root of the current 
application for each entry.

<securitySwitch ...>
  <files>
    <add path="Login.aspx" />
  </files>
</securitySwitch>

Original comment by vent...@gmail.com on 26 Jun 2011 at 1:55

GoogleCodeExporter commented 9 years ago
I am able to get the version 3.1.3 of the module working on a test website with 
the above configuration section. If you are still having trouble, please post 
all related configuration sections.

Original comment by vent...@gmail.com on 26 Jun 2011 at 1:56

GoogleCodeExporter commented 9 years ago
Thanks very much for taking the time to help.
Due to changes in priorities I am no longer investigating this at the moment. 
Maybe will come back to it sometime in the future.

Original comment by wealthan...@googlemail.com on 10 Jul 2011 at 2:13

GoogleCodeExporter commented 9 years ago

Original comment by vent...@gmail.com on 20 Jul 2011 at 12:00