orcouterauth

package
v0.0.0-...-b5a46b0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 9 Imported by: 0

README

orcouterauth: a library for HTTP authorization using (sibling library) hashedsecret

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Gatekeeper Gatekeeper
	Provider   Provider
}

func New

func New(canonicalHost string, filenames []string) (*Auth, error)

type Gatekeeper

type Gatekeeper struct {
	// contains filtered or unexported fields
}

func (Gatekeeper) CheckAuth

func (g Gatekeeper) CheckAuth(req *http.Request) (*authinterface.AuthSuccessInfo, error)

func (Gatekeeper) DemandAuth

func (g Gatekeeper) DemandAuth(w http.ResponseWriter) error

func (Gatekeeper) GatekeeperDescription

func (g Gatekeeper) GatekeeperDescription() string

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func (Provider) MakeAuthHeaders

func (p Provider) MakeAuthHeaders(ctx authinterface.RequestContext) (map[string]string, error)

type Secret

type Secret struct {
	Name      string `json:"name,omitempty"`
	Timestamp string `json:"timestamp,omitempty"`
	Secret    string `json:"secret"`
}

Jump to

Keyboard shortcuts

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