Skip to content

negroni handlers for authentication. based from martini-contrib

License

Notifications You must be signed in to change notification settings

banux/negroni-auth

 
 

Repository files navigation

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

About

negroni handlers for authentication. based from martini-contrib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%