Skip to content

Basic Authentication for WebApi projects deployed as Azure Web Apps behind an API Management

License

Notifications You must be signed in to change notification settings

eepb/Hexasoft.BasicAuthentication

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexasoft.BasicAuthentication

Hexasoft.BasicAuthentication is a Http Module that adds Basic Authentication to your ASP.NET web application. Ideal for securing WebApi projects deployed as Azure Web Apps behind an Azure API Management.

See: http://stackoverflow.com/questions/33975280/simplest-way-to-add-basic-authentication-to-web-config-with-user-pass

Inspired by Devbridge.BasicAuthentication.

Download

Hexasoft.BasicAuthentication is available as a NuGet package at https://www.nuget.org/packages/Hexasoft.BasicAuthentication

Usage

After installing the package you will see 3 new settings in the appSettings section of your Web.config:

<add key="BasicAuthentication.Required" value="true" />
<add key="BasicAuthentication.Username" value="testuser" />
<add key="BasicAuthentication.Password" value="testpass" />

Use the BasicAuthentication.Required to quickly turn the authentication on or off while the username/password settings are self explanatory. Username is case-insensitive, password is case-sensitive.

As this module was meant to secure WebApi's behind an Azure API Management, it only supports one username/password combination. No support for multiple users,

Version history

  • 1.0.0 Initial public release

About

Basic Authentication for WebApi projects deployed as Azure Web Apps behind an API Management

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 96.7%
  • HTML 1.9%
  • Classic ASP 1.4%