storj/pointerdb/auth
JT Olio 45a3c2e974
pkg/provider: with pkg/provider merged, make a single heavy client binary, gateway binary, and deprecate old services (#165)
* pkg/provider: with pkg/provider merged, make a single heavy client binary and deprecate old services

* add setup to gw binary too

* captplanet: output what addresses everything is listening on

* revert peertls/io_util changes

* define config flag across all commands

* use trimsuffix
2018-07-26 08:21:35 -06:00
..
process_api_key.go pkg/provider: with pkg/provider merged, make a single heavy client binary, gateway binary, and deprecate old services (#165) 2018-07-26 08:21:35 -06:00
README.md rename netstate to pointerdb (#127) 2018-07-06 15:43:53 -04:00

Purpose of this is to process an API Key to see if it matches the correct client.

Import the following libraries with: go get -u github.com/spf13/viper go get -u github.com/spf13/pflag

To use, run in examples/auth/main.go: $ go run main.go --key=yourkey

Default api key is preset with the mocked headers. This will be changed later.

Where this is going: We're going to be using macaroons to validate a token and permissions. This is a small step to building in that direction.