<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.iis.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:cs="http://blogs.iis.net/"><channel><title>Extensibility</title><link>http://forums.iis.net/1030.aspx</link><description>Developers using the IIS platform - this is your Home!  Discuss ISAPI filter or extension development and much, much more.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Adding a new header in ISAPI filter (onPreProc)</title><link>http://forums.iis.net/thread/1918210.aspx</link><pubDate>Thu, 24 Sep 2009 23:15:58 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1918210</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1918210.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1030&amp;PostID=1918210</wfw:commentRss><description>&lt;p&gt;Basic authentication header is documented in rfc 2617.&amp;nbsp; For windows auth, there is no way to get the username in case of authentication failure.&lt;/p&gt;</description></item><item><title>Re: Adding a new header in ISAPI filter (onPreProc)</title><link>http://forums.iis.net/thread/1917321.aspx</link><pubDate>Thu, 17 Sep 2009 11:42:41 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1917321</guid><dc:creator>test_win</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1917321.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1030&amp;PostID=1917321</wfw:commentRss><description>&lt;p&gt;How to parse the authorization header?&lt;/p&gt;
&lt;p&gt;What exactly we need to check in authorization header?&lt;/p&gt;
&lt;p&gt;How to check it integrated windows authentication.&lt;/p&gt;
&lt;p&gt;Can you please provide with some sample code / link&lt;/p&gt;</description></item><item><title>Re: Adding a new header in ISAPI filter (onPreProc)</title><link>http://forums.iis.net/thread/1917196.aspx</link><pubDate>Wed, 16 Sep 2009 15:46:00 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1917196</guid><dc:creator>anilr</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1917196.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1030&amp;PostID=1917196</wfw:commentRss><description>&lt;p&gt;For basic auth, you can because the username/password is in cleartext in the request, you can either parse the authorization header yourselves, or the AUTH_USER server-variable is set for basic auth after authentication even in case of failure.&amp;nbsp; You would not be able to do this for integrated windows auth.&lt;/p&gt;</description></item><item><title>Re: Adding a new header in ISAPI filter (onPreProc)</title><link>http://forums.iis.net/thread/1917160.aspx</link><pubDate>Wed, 16 Sep 2009 11:37:41 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1917160</guid><dc:creator>test_win</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1917160.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1030&amp;PostID=1917160</wfw:commentRss><description>&lt;p&gt;Below is the scenario for a virtual directory following are the setting in IIS &lt;/p&gt;
&lt;p&gt;1. Enable Anonymous Access is DISABLED (check box is unchecked). &lt;br /&gt;2. Integrated Windows Authentication is DISABLED (check box is unchecked) &lt;br /&gt;3. Basic authentication is ENABLED (checkbox is selected) &lt;/p&gt;
&lt;p&gt;In the web.config of the web application (for the same virtual directory above) the setting is as follows:&lt;/p&gt;
&lt;p&gt;&amp;lt;authentication mode=&amp;quot;Windows&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;authorization&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;allow users=&amp;quot;?&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/authorization&amp;gt; &lt;/p&gt;
&lt;p&gt;When I browse an aspx page of the above web application it asks for username and password.&lt;/p&gt;
&lt;p&gt;User enters username and password (in the dialog which appears as a part of windows authentication).&lt;/p&gt;
&lt;p&gt;I can get the username that user has entered) if the login is successful.&lt;/p&gt;
&lt;p&gt;Is there any way I can get the username(that user has entered) even if the login fails. &lt;/p&gt;
&lt;p&gt;Regards, &lt;br /&gt;Deepak&lt;/p&gt;</description></item><item><title>Re: Adding a new header in ISAPI filter (onPreProc)</title><link>http://forums.iis.net/thread/1903130.aspx</link><pubDate>Fri, 08 May 2009 13:18:42 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903130</guid><dc:creator>narayanspg</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1903130.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1030&amp;PostID=1903130</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;hey i got it working by the end of the day.....&lt;/p&gt;&lt;p&gt;thanks&lt;/p&gt;&lt;p&gt;i shd have to use base64 on username:password&lt;/p&gt;&lt;p&gt;but i was previosly doing on separate strings...&lt;/p&gt;&lt;p&gt;thanks guys&lt;/p&gt;&amp;nbsp;narayanspg</description></item><item><title>Re: Adding a new header in ISAPI filter (onPreProc)</title><link>http://forums.iis.net/thread/1903108.aspx</link><pubDate>Fri, 08 May 2009 09:25:05 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1903108</guid><dc:creator>narayanspg</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1903108.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1030&amp;PostID=1903108</wfw:commentRss><description>&lt;p&gt;Hi , &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;my problem sounds same but its with ISAPI filter&lt;br /&gt; &lt;br /&gt; &amp;nbsp;i wrote&amp;nbsp; a simple ISAPI filter... &lt;br /&gt; which should authenticate automatically without prompting for username and password.&lt;br /&gt; the username and password are base64 encoded.&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&amp;nbsp;the code snippet looks like :&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wsprintf(szTemp, &amp;quot;Basic %s:%s&amp;quot;,encodedUsername,encodedPassword);&lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; pHeaderInfo-&amp;gt;SetHeader(pCtxt-&amp;gt;m_pFC, &amp;quot;Authorization:&amp;quot;, szTemp);&lt;br /&gt; &lt;br /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return SF_STATUS_REQ_HANDLED_NOTIFICATION;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;i tried with addheader too but no luck.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;please help what change i should make it to work.&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;narayanspg&lt;/p&gt;</description></item><item><title>Re: Adding a new header in ISAPI filter (onPreProc)</title><link>http://forums.iis.net/thread/1043153.aspx</link><pubDate>Tue, 06 Sep 2005 13:26:43 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1043153</guid><dc:creator>deepak.vasudevan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1043153.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1030&amp;PostID=1043153</wfw:commentRss><description>Got it!&lt;BR&gt;&lt;BR&gt;Actually, it seems we can not set new headers in the specified event notification.</description></item><item><title>Adding a new header in ISAPI filter (onPreProc)</title><link>http://forums.iis.net/thread/1024464.aspx</link><pubDate>Thu, 18 Aug 2005 09:10:12 GMT</pubDate><guid isPermaLink="false">50bcf3b4-f6fe-4638-adff-0c150e922e99:1024464</guid><dc:creator>deepak.vasudevan</dc:creator><slash:comments>0</slash:comments><comments>http://forums.iis.net/thread/1024464.aspx</comments><wfw:commentRss>http://forums.iis.net/commentrss.aspx?SectionID=1030&amp;PostID=1024464</wfw:commentRss><description>&lt;P&gt;I have an ISAPI filter to listen to particular URL patterns like &lt;A href="http://lavanyadeepak/myblogs/lavanya/"&gt;http://lavanyadeepak/myblogs/lavanya/&lt;/A&gt; &lt;A href="http://lavanyadeepak/myblogs/deepak/"&gt;http://lavanyadeepak/myblogs/deepak/&lt;/A&gt; The filter needs to redirect to a particular webpage called &lt;A href="http://lavanyadeepak/webpagerouter.aspx"&gt;http://lavanyadeepak/webpagerouter.aspx&lt;/A&gt; &lt;BR&gt;&lt;BR&gt;The filter would actually set a header called X-BlogName (to deepak or lavanya or whatever). My WebForm would then read the data from database based on this Header value (Request.Headers collection) and display the appropriate weblog.&lt;BR&gt;&lt;BR&gt;The problem is that ISAPI filter is able to set the Header but the header does not come in the Request.Headers collection in webpagerouter.aspx&lt;BR&gt;&lt;BR&gt;Any idea where it is getting disturbed?&lt;/P&gt;</description></item></channel></rss>