matricali / akamai-token-auth
This library provides necessary logic to generate Akamai edge authorization token and signed URL.
Installs: 813 959
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 2
Forks: 2
Open Issues: 2
Requires
- php: >=5.3.3
Requires (Dev)
- evert/phpdoc-md: ~0.2.0
- phpdocumentor/phpdocumentor: 2.*
- phpunit/phpunit: ~4.0
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~1.5
This package is auto-updated.
Last update: 2024-11-29 05:33:29 UTC
README
Generates authorization token used by Akamai's Auth Token 2.0. It can be used in the HTTP Cookie, Query String, and Header. You can configure it in the Property Manager at https://control.akamai.com.
Installation
composer require matricali/akamai-token-auth
Usage
use Matricali\Security\EdgeAuth\TokenAuth; $edgeAuth = new TokenAuth('aabbccddeeffgg00112233445566', TokenAuth::ALGORITHM_SHA256); /* @throws Matricali\Security\EdgeAuth\InvalidArgumentException */ $edgeAuth->setIp($client_ip); $authUrl = $edgeAuth->generateToken();