http_auth

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

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

Go to latest
Published: Apr 6, 2012 License: MIT Imports: 9 Imported by: 0

README

http_digest.go
==============

Interface to using server side http digests.

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 and returns username

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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