command
Version:
v0.0.0-...-eac43e7
Opens a new window with list of versions in this module.
Published: Sep 6, 2017
License: MPL-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
About
generate-hawk-header creates a Hawk authentication string with a valid token. This
can be used to make requests to a sync storage server with curl.
For example:
URL="http://localhost:8888/1.5/12345/info/configuration"; \
HAWK=$(go run ./main.go "$URL" "SECRET"); \
curl -vH "Authorization: $HAWK" "$URL"
Remember:
- The URL must be an absolute url. This includes the correct protocol schema, sync node hostname, port and path.
- The correct secret for the sync node must used
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.