stackpath-urlauth

module
v0.0.0-...-7957c1d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2018 License: MIT

README

stackpath-urlauth

Golang library to sign Stackpath CDN URLs. This prevents tampering and allows for automatic expiration of URLs.

Details on the Stackpath 'Secure Tokens' feature are available on the Stackpath Support site.

Example

import ("github.com/muxinc/stackpath-urlauth/urlauth")

inputURL := "https://www.example.com/foo?client_id=abc123&foo=bar"
secret := "supersecret"
expirationTime := startTime.Add(time.Hour * 6)
signedURL, err := urlauth.SignURL(inputURL, secret, expirationTime)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL