Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Issue with Windows Authentication using iisnode and WebMatrix

Issue with Windows Authentication using iisnode and WebMatrix

Problem

I tried to write a simple site using node.js hosted on IIS Express 7.5 (via WebMatrix). I would like to use Integrated Windows Authentication.

I configured applicationhost.config as it described in some similar posts. Also i have configured web.config as well.

Now, when request the site it ask for credentials. That's pretty good for now. Then i provide correct domain credentials and got an error 401.1

Well, the site in trusted zone and Fidler said Kerberos tickets provided.

What's wrong?

I checked trace and got the following error:

{00000000-0000-0000-3F03-0080000000F8}WindowsAuthenticationModule2401Unauthorized12147942485MODULE_SET_RESPONSE_ERROR_STATUSRequestNotificationsAUTHENTICATE_REQUESTThe local device name is already in use. (0x80070055)

Ok, then i was trying to figure out the problem for few hours and only found that if remove rules or URL Rewrite Module from web.config

    

then all will work great (except the correct handling of app.js)

So, the question is how to keep original node.js template for WebMatrix and use Windows Authentication without such error?

One more question is how to get all Context info collected by pipeline of IIS modules in node.js ??

Problem courtesy of: EugeneVr

Solution

As of iisnode v0.1.13, information collected by the IIS pipeline is not exposed to the node.js application. This is a known limitation that will be addressed by https://github.com/tjanczuk/iisnode/issues/87 and https://github.com/tjanczuk/iisnode/issues/94.

The problem with authentication when rewrite rules are used needs to be investigated; created https://github.com/tjanczuk/iisnode/issues/127.

Solution courtesy of: Tomasz Janczuk

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

Issue with Windows Authentication using iisnode and WebMatrix

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×