Skip to content

pehadavid/BasicHttpAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quick Start Tutorial

  • Install BasicHttpAuth from NuGet (use VS Nuget GUI or Install-Package BasicHttpAuth)
  • Check project dependencies : You should have Owin, Microsoft.Owin and Microsoft.Owin.Host.SystemWeb
  • Change username and password in your web.config (appSettings > basicAuth:username and basicAuth:pass)
  • Make sure that your project has an Owin Startup Class and add the BasicAuthMiddleware to your Owin pipeline
  • Also be sure to add it before other autentication middleware you might be using like for example: app.UseCookieAuthentication
[assembly: OwinStartupAttribute(typeof(SampleProject.Startup))]
namespace SampleProject
{
    public partial class Startup
    {
        public void Configuration(IAppBuilder app)
        {
          app.Use(typeof (BasicAuthMiddleware));
        }
    }
}

About

Initial Commit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages