security

package
v0.1.1-0...-f25bbfc Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2013 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package security takes care of user's https requests authentification

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Credentials

func Credentials(request *restful.Request) (string, string, error)

Credentials extracts from the header the authentification hash, and decodes it to return username and password informations.

func EtcdCheckCredentials

func EtcdCheckCredentials(username, hash string, debug bool) (bool, error)

EtcdCheckCredentials queries the etcd database to compare given and stored hashes.

func MysqlCheckCredentials

func MysqlCheckCredentials(username string, hash string) (bool, error)

MysqlCheckCredentials fetchs 'hive.login' table 'username' hash and, if found, compare it with the given one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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