Token Generator for Edgecast Token-Based Authentication
Token-Based Authentication safeguards against hotlinking by adding a token requirement to requests for content secured by it. This token, which must be defined in the request URL's query string, defines the criteria that must be met before the requested content may be served via the CDN. This repository contains the following token generation resources:
Quick Start
- Leverage this token generator by either:
- Downloading a Linux binary and/or Windows executable.
- Cloning this repository and then incorporating the source code for the desired language in your application.
- Create a script to generate tokens for your content.
- Either update your static links or dynamically generate links that include a query string set to a token that defines the requirements that must be met before that content may be served.
Usage
Use the following syntax to specify a single parameter:
ectoken3 <KeyName> "<Parameter>=<Value>"
Use the following syntax to specify multiple parameters:
ectoken3 <KeyName> "<Parameter1>=<Value>&<Parameter2>=<Value1>,<Value2>"
Contributing
Contributions are welcome! Please review our contribution guidelines.
Please refer to the CDN Help Center, which is available from within the MCC, for more information (e.g., parameter names and usage).
License
View legal and licensing information.