http_auth

package module
v0.0.0-...-b2ef918 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2012 License: MIT Imports: 9 Imported by: 3

README

http_auth
=========

Interface to using server side http digest authentication.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateHA1

func CalculateHA1(user, realm, pass string) string

Types

type BasicServer

type BasicServer Server

func NewBasic

func NewBasic(realm string, authfun func(user, realm string) string) *BasicServer

func (*BasicServer) Auth

Authenticates

type DigestServer

type DigestServer Server

func NewDigest

func NewDigest(realm string, authfun func(user, realm string) string) *DigestServer

func (*DigestServer) Auth

Authenticates

type Server

type Server struct {
	sync.Mutex
	AuthFun func(user, realm string) string

	Realm                             string
	ReaperWaitSeconds, ReapTTLSeconds int
	// contains filtered or unexported fields
}

func (*Server) Logout

func (s *Server) Logout(r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL