<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Basic Authentication</title><link>http://asp.net</link><pubDate>Sun, 05 May 2013 19:44:58 GMT</pubDate><generator>umbraco</generator><description>Comments for Basic Authentication</description><language>en</language><atom:link href="http://asp.net/rss/comments/43551" rel="self" type="application/rss+xml" /><item><title>Comment Posted by subsci</title><link>http://asp.net/web-api/overview/security/basic-authentication</link><pubDate>Fri, 01 Feb 2013 04:15:51 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018292</guid><description><![CDATA[ <p>Some missing details for the Basic Authentication with Custom Membership case that I needed to make this work follow.  </p><p></p><p>Clearly a HttpClient (non-browser) requires an AuthenticationHeaderValue indicating the Basic scheme and the Base64 encoded username:password.    </p><p></p><p>All IIS authentication for the web app should be disabled--go to IIS manager for this web app and go to authentication and disable all: anonymous, forms, basic, windows, impersonation.</p><p></p><p>I removed the &lt;system.web&gt;&lt;authentication&gt;  element in the web.config</p><p></p><p>It would be interesting to see an example with a Handler rather than a Module.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/subsci.jpg?forceidenticon=false&amp;dt=635050041600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bernardjclark</title><link>http://asp.net/web-api/overview/security/basic-authentication</link><pubDate>Wed, 06 Mar 2013 21:39:39 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018597</guid><description><![CDATA[ <p>Thank God for @subsci</p><p></p><p>There should be much better guidance as to how to configure IIS to make this work. </p><p></p><p>Microsoft seem hell bent on describing Web API security as something either done via Windows Authentication or by using Forms and a browser when absolutely no one is using Web API in that context.</p><p></p><p>Given that most security vulnerabilities occur through poor execution of best practice, Microsoft needs to offer clearer guidance on how to implement Authentication in Web API.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/bernardjclark.jpg?forceidenticon=false&amp;dt=635050041600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by bernardjclark</title><link>http://asp.net/web-api/overview/security/basic-authentication</link><pubDate>Wed, 06 Mar 2013 21:41:17 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018598</guid><description><![CDATA[ <p>Also - I didn&#39;t realize that the &#39;type&#39; attribute (type=&quot;WebHostBasicAuth.Modules.BasicAuthHttpModule, BasicAuth&quot; above) actually specifies the assembly and nor does it indicate where the resulting DLL needs to be placed. </p><p></p><p>My assembly was called &quot;AuthModule&quot; and so I needed to change the above attribute to type=&quot;WebHostBasicAuth.Modules.BasicAuthHttpModule, AuthModule&quot; and the resulting DLL placed in the BIN folder of my Web API application. </p><p></p><p>This is not explained well in the guidance above.</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/bernardjclark.jpg?forceidenticon=false&amp;dt=635050041600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by leotohill</title><link>http://asp.net/web-api/overview/security/basic-authentication</link><pubDate>Sat, 30 Mar 2013 23:28:23 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000018819</guid><description><![CDATA[ <p>Isn&#39;t something missing?  Doesn&#39;t something need to set Reponse.StatusCode = 401 ?</p>]]></description><enclosure length="0" type="image/png" url="http://i2.asp.net/avatar/leotohill.jpg?forceidenticon=false&amp;dt=635050041600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by RolyLander</title><link>http://asp.net/web-api/overview/security/basic-authentication</link><pubDate>Fri, 03 May 2013 19:25:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019034</guid><description><![CDATA[ <p>test please Mike Wasson, how Basic Authentication with Custom Membership from fiddler?</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/RolyLander.jpg?forceidenticon=false&amp;dt=635050041600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by RolyLander</title><link>http://asp.net/web-api/overview/security/basic-authentication</link><pubDate>Sun, 05 May 2013 00:17:29 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019037</guid><description><![CDATA[ <p>con * Usar IIS Express funciona, pero en el IIS Local ya me da error de authentication... que configuracion me falta en IIS 8.... alguien sabe... por favor</p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/RolyLander.jpg?forceidenticon=false&amp;dt=635050041600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item><item><title>Comment Posted by RolyLander</title><link>http://asp.net/web-api/overview/security/basic-authentication</link><pubDate>Sun, 05 May 2013 19:44:58 GMT</pubDate><guid isPermaLink="false">00000000-0000-0000-0000000019042</guid><description><![CDATA[ <p>solucion:(del problema que tenia) en IIS 8 : en la aplicacion clic en Autenticacion, deshabilitar todo excepto -&gt; Autenticacion an&#243;nima(esta tiene q estar Habilitada) ... con esto deberia de funcionar --&gt; Basic Authentication with Custom Membership </p>]]></description><enclosure length="0" type="image/png" url="http://i1.asp.net/avatar/RolyLander.jpg?forceidenticon=false&amp;dt=635050041600000000&amp;enableAvatar=False&amp;cdn_id=2013-05-10-001" /></item></channel></rss>