Skip to content
negroni handlers for authentication. based from martini-contrib
Go
Branch: master
Clone or download
Pull request Compare This branch is 25 commits ahead, 18 commits behind martini-contrib:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/negroni-auth-genpw
datastore
.travis.yml
LICENSE
README.md
basic.go
basic_test.go
util.go
util_test.go

README.md

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

You can’t perform that action at this time.