HTTP Authentication for Azure using AzurePowerTools by Devbridge

I am trying to temporarily protect an ASP.NET site (starter pack) under development on Azure using:

https://github.com/devbridge/AzurePowerTools

More details:

http://www.devbridge.com/articles/basic-authentication-for-windows-azure-websites

If I run my test project, it works great. But if I add a module, I end up with redirect loops as follows:

 http://localhost:53529/Account/Login?ReturnUrl=%2FAccount%2FLogin%3FReturnUrl%3D%252FAccount%252FLogin%253FReturnUrl%253D%25252FAccount%25252FLogin%25253FReturnUrl%25253D%2525252FAccount%2525252FLogin%2525253FReturnUrl%2525253D%252525252FAccount%252525252FLogin%252525253FReturnUrl%252525253D%25252525252FAccount%25252525252FLogin%25252525253FReturnUrl%25252525253D%2525252525252FAccount%2525252525252FLogin%2525252525253FReturnUrl%2525252525253D%252525252525252FAccount%252525252525252FLogin%252525252525253FReturnUrl%252525252525253D%25252525252525252FAccount%25252525252525252FLogin%25252525252525253FReturnUrl%25252525252525253D%2525252525252525252FAccount%2525252525252525252FLogin%2525252525252525253FReturnUrl%2525252525252525253D%252525252525252525252FAccount%252525252525252525252FLogin%252525252525252525253FReturnUrl%252525252525252525253D%25252525252525252525252FAccount%25252525252525252525252FLogin%25252525252525252525253FReturnUrl%25252525252525252525253D%2525252525252525252525252FAccount%2525252525252525252525252FLogin%2525252525252525252525253FReturnUrl%2525252525252525252525253D%252525252525252525252525252FAccount%252525252525252525252525252FLogin%252525252525252525252525253FReturnUrl%252525252525252525252525253D%25252525252525252525252525252FAccount%25252525252525252525252525252FLogin%25252525252525252525252525253FReturnUrl%25252525252525252525252525253D%2525252525252525252525252525252FAccount%2525252525252525252525252525252FLogin%2525252525252525252525252525253FReturnUrl%2525252525252525252525252525253D%252525252525252525252525252525252FAccount%252525252525252525252525252525252FLogin%252525252525252525252525252525253FReturnUrl%252525252525252525252525252525253D%25252525252525252525252525252525252FAccount%25252525252525252525252525252525252FLogin%25252525252525252525252525252525253FReturnUrl%25252525252525252525252525252525253D%2525252525252525252525252525252525252FAccount%2525252525252525252525252525252525252FLogin%2525252525252525252525252525252525253FReturnUrl%2525252525252525252525252525252525253D%252525252525252525252525252525252525252FAccount%252525252525252525252525252525252525252FLogin%252525252525252525252525252525252525253FReturnUrl%252525252525252525252525252525252525253D%25252525252525252525252525252525252525252F

Anyone who has a key?

+3
source share
3 answers

Thank you for your interest in our work.

It seems that your site is already using forms authentication. I do not think that your site requires basic authentication.

-, . - .

Fiddler . GitHub .

+2

, , . appSettings Web.config:

<add key="autoFormsAuthentication" value="false" />
<add key="enableSimpleMembership" value="false"/>

, Web.config.

+1

, BasicAuthenticationModule AzurePowerTools HTTP 401, FormsAuthenticationModule , AzurePowerTools 401... .

, , - web.config:

<modules> <remove name="FormsAuthentication" /> </modules>

: -API WCF, IIS/ 404 -

, ASP.NET Forms 401 .

If you use IIS and the ASP.NET MVC website just for hosting your web API, you almost did it - just remove the ASP.NET Forms authentication in your web.config: ...

0
source

All Articles