
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
github.com/jwuensche/hub-go-authentication
This repository contains a simple and lightweight authentication service build with go.
git clone git@github.com:jwuensche/hub-go-authentication.git
#or
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
#to run the created container
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 files are located in the config directory and will be generated by the service if none are present.
Current files are:
port : 9000 #Assign port, This is currently not checked so don't enter any invalid ports.
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"
}
Run
$ go test
in your terminal to execute existing tests.
gorilla/mux, https://github.com/gorilla/mux
op-logging, https://github.com/op/go-logging
go-yaml, https://github.com/go-yaml/yaml
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.