Skip to content

JohanSpannare/AzurePowerTools

 
 

Repository files navigation

DevBridge Azure Power Tools (http://www.devbridge.com)

Our Azure Power Tools project is the collection of Windows Azure related tools and extensions. Here at DevBridge, we believe in open communication and like to share our knowledge with others who may find it helpful.

You can also take a look at our Standard Web Project Template.

Basic authentication for Windows Azure websites

Basic authentication for Windows Azure websites is a HTTP managed module that provides basic authentication for web applications hosted in Windows Azure websites. For more information please read this blog post.

Basic authentication module has relation to two projects:

  • Devbridge.BasicAuthentication project has the implementation for the basic authentication module.
  • Devbridge.BasicAuthentication.Test is simple test website that can be used to test basic authentication.

###Configuration Settings

  • allowRedirects: indicates whether redirects are allowed without authentication.
  • excludes: allows to configure rules to exclude certain parts of application from authentication.

####Sample excludes

<!-- exclude POST requests to URLs starting with /home; other requests (GET to /home/index, POST to /account/login) should be authenticated -->
<add url="^/home(.*)" verb="post" />
<!-- exclude POST requests to all URLs; other requests (GET to /home/index, DELETE to /account/123) should be authenticated -->
<add url="" verb="post" />
<!-- exclude all requests to URLs starting with /allow; other requests should be authenticated -->
<add url="^/allow(.*)" verb="" />
<!-- exclude all requests to URLs starting with /home; rules specified below overwrite previous rules with the same url pattern.  -->
<add url="^/home(.*)" verb="" />

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 93.6%
  • PowerShell 6.3%
  • Classic ASP 0.1%