Validates Akamai v2 query string tokens
Add --add-module
when configuring nginx:
./configure --add-module=$PATH_TO_AKAMAI_TOKEN_VALIDATE
Requires OpenSSL.
- syntax:
akamai_token_validate token
- default:
off
- context:
http
,server
,location
Sets the value of the token that should be validated. The parameter value can contain variables, e.g. $arg_token.
- syntax:
akamai_token_validate_key key_hex
- default:
empty
- context:
http
,server
,location
Sets the secret key
- syntax:
akamai_token_validate_uri_filename_prefix prefix
- default:
none
- context:
http
,server
,location
Defines a set of prefixes that will be matched against the URI file name, only URIs whose file name starts with one of the defined prefixes will require a token
- syntax:
akamai_token_validate_strip_token param_name
- default:
none
- context:
http
,server
,location
This setting can be used to strip query parameters, set it to the name of the parameter to strip. The default behavior is not to strip any query parameters. This setting is useful when the validated requests are proxied to some upstream server (using proxy_pass) - it can be used to remove the token from the upstream request
All code in this project is released under the AGPLv3 license unless a different license for a particular library is specified in the applicable library path.
Copyright © Kaltura Inc. All rights reserved.