Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 731 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 731 Bytes

negroni-auth Build Status

Negroni middleware/handler for http basic authentication forked from martini-contrib/auth.

API Reference

Usage

import (
  "github.com/codegangsta/negroni"
  "github.com/nabeken/negroni-auth"
)

func main() {
  m := negroni.New()
  // authenticate every request
  m.UseHandler(auth.Basic("username", "secretpassword"))
  m.Run()
}

Authors