Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IIS server variables updated by custom http module not promoted with latest values #317

Closed
timgit opened this issue Jan 14, 2014 · 2 comments

Comments

@timgit
Copy link

timgit commented Jan 14, 2014

I used the solution in issue #87 to successfully pass the server variables to node. However, I modified a server variable in my own http module (that I can step through in the debugger before the handler is executed), and the promoted server variable is still picking the previous value. I have confirmed that a standard ASP.NET page sees the changed server variable.

It could be that I'm not setting the server variable properly (AUTH_USER), as the only method I could find involved replacing the current principal (Windows in my case) with GenericPrincipal in my module.

@nsharrok
Copy link

nsharrok commented Mar 4, 2016

I too need to have AUTH_USER propagate through to x-iisnode-auth_user.
Can you explain in a little more detail what you did?

@PeterMurdoch
Copy link

@nsharrok I had this problem after applying passive wsFederation redirection. The solution I came up with was to override the postauthenticaterequest event, add the header with a null terminator, then trim the null terminator out if present once passed around.

@timgit timgit closed this as not planned Won't fix, can't repro, duplicate, stale Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants