banux / negroni-auth

negroni handlers for authentication. based from martini-contrib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 100.0%