Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Problem with WindowsAuthentication set "on" on IIS application #10

Open
mbrit opened this issue Jun 30, 2015 · 1 comment
Open

Problem with WindowsAuthentication set "on" on IIS application #10

mbrit opened this issue Jun 30, 2015 · 1 comment

Comments

@mbrit
Copy link

mbrit commented Jun 30, 2015

We've found a problem whereby if we have an IIS application where WindowsAuthentication is enabled, any redirected URLs do not work.

e.g. if we have a rule whereby /Customers --> /ViewCustomers.aspx, if the user browses to /Customers it keeps prompting for credentials. (If the user browses to /ViewCustomers.aspx it is fine.)

What we've found is that if we change line 142 in RewriterModule such that the call to TransferRequest is just this:

context.Server.TransferRequest(rewrittenUrlPath);

...it works fine. Also if we use the override where JUST preserveForm is set True, it works OK. It seems to be something to do with the method or header arguments being passed, although we're not sure what.

At the moment we're using a modified version of the library with our "fix" in it, but would prefer to keep using your supported version. :-)

@nberardi
Copy link
Member

I am open to a pull request for this. I will push to NuGet after I receive one.

Nick Berardi
(484) 302-0125
Sent on the go from my phone.

On Jun 30, 2015, at 6:00 AM, Matthew Baxter-Reynolds (@mbrit) [email protected] wrote:

We've found a problem whereby if we have an IIS application where WindowsAuthentication is enabled, any redirected URLs do not work.

e.g. if we have a rule whereby /Customers --> /ViewCustomers.aspx, if the user browses to /Customers it keeps prompting for credentials. (If the user browses to /ViewCustomers.aspx it is fine.)

What we've found is that if we change line 142 in RewriterModule such that the call to TransferRequest is just this:

context.Server.TransferRequest(rewrittenUrlPath);

...it works fine. Also if we use the override where JUST preserveForm is set True, it works OK. It seems to be something to do with the method or header arguments being passed, although we're not sure what.

At the moment we're using a modified version of the library with our "fix" in it, but would prefer to keep using your supported version. :-)


Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants