auth

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2014 License: BSD-4-Clause, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHeaders

func AddHeaders(req *http.Request)

func InitAuth

func InitAuth()

func StoreAuth

func StoreAuth(authConfig *AuthConfig) error

Types

type AuthConfig

type AuthConfig struct {
	AuthToken string `json:"authentication_token"`
	Email     string `json:"email"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	UserName  string `json:"username"`
}
var (
	Config *AuthConfig
)

func Authenticate

func Authenticate() (*AuthConfig, error)

func LoadAuth

func LoadAuth() (*AuthConfig, error)

Jump to

Keyboard shortcuts

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