stackhttpauth

package
v6.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package stackhttpauth provides wrappers based on the github.com/abbot/go-http-auth package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicSecret

func BasicSecret(password, salt, magic string) string

func DigestSecret

func DigestSecret(user, password, realm string) string

func NewBasic

func NewBasic(realm string, secrets func(user, realm string) string) *basic

NewBasic returns a middleware that authenticates via auth.NewBasicAuthenticator and saves the resulting *auth.AuthenticatedRequest in the Contexter (response writer).

func NewDigest

func NewDigest(realm string, secrets func(user, realm string) string) *digest

NewDigest returns a middleware that authenticates via auth.NewDigestAuthenticator and saves the resulting *auth.AuthenticatedRequest in the Contexter (response writer).

Types

type AuthenticatedRequest

type AuthenticatedRequest struct {
	auth.AuthenticatedRequest
}

func (*AuthenticatedRequest) Reclaim

func (a *AuthenticatedRequest) Reclaim(repl interface{})

Jump to

Keyboard shortcuts

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