Categorygithub.com/modcloth/auth
repositorypackage
0.0.0-20140703220248-3f96c83d4d50
Repository: https://github.com/modcloth/auth.git
Documentation: pkg.go.dev

# README

auth wercker status

Martini middleware/handler for http basic authentication.

API Reference

Usage

import (
  "github.com/go-martini/martini"
  "github.com/martini-contrib/auth"
)

func main() {
  m := martini.Classic()
  // authenticate every request
  m.Use(auth.Basic("username", "secretpassword"))
  m.Run()
}

Authors