auth

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: Apache-2.0, BSD-3-Clause, Zlib Imports: 3 Imported by: 0

Documentation

Overview

Package auth is a middleware handler for Lagann to authenticate users over the SSH key they specified in the X-Lagann-Auth header.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	BasePath   string
	HeaderName string
	// contains filtered or unexported fields
}

Struct Auth is a negroni middleware for checking X-Lagann-Auth for the correct SSH key fingerprint.

func NewAuth

func NewAuth(machine, path string) (*Auth, error)

func (*Auth) ServeHTTP

func (a *Auth) ServeHTTP(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)

Jump to

Keyboard shortcuts

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