github.com/KristinaEtc/auth

auth module written in go


Install
go get github.com/KristinaEtc/auth

Documentation

auth

Authentication module

Testing on: Ubuntu 14.04.4 LTS
Programming language: Golang: go1.5.2 linux/amd64
Web-framework: gin-gonic

  • Using authorization depends on url-prefix, client address and request header, that indicated in webconfig file
  • Authentications: http basic, http digest, windows NTLM, trust, forms/cookie
  • Implemented the ability to pass a list of users from different repositories (configfile/DB): it setting in main.go. For example:
webauth.ConfigureFromFile("./webauth.json")

run a program

go build main.go 
./main

Warning: in this module log library creates a log directory where exec file is situated; it is not recommended to use go run.