HubGoAuthentication
This repository contains a simple and lightweight authentication service build with go.
How to start
git clone git@github.com:jwuensche/hub-go-authentication.git
git clone https://github.com/jwuensche/hub-go-authentication.git
go build -o hub-go-auth
./hub-go-auth
or if you want to build and run the docker image
make docker
docker create volume hub_go_auth
make run
The Dockerfile will use the golang container to compile and run the container.
Per default the container will use port 9000 this can be changed in the
Makefile.
Configuration
Configuration files are located in the config directory and will be generated
by the service if none are present.
Current files are:
port : 9000
Usage
Request can be send by posting json to the specified routes which are:
{
"User": "foo",
"Password" : "bar"
}
{
"Token" : "foobar"
}
{
"User": "foo",
"Password": "bar"
}
{
"Token":"foobar"
}
{
"User":"foo",
"CurrentPassword":"bar",
"NewPassword":"rab"
}
How to test
Run
$ go test
in your terminal to execute existing tests.
Current Issues
Used Packages