jorge-matricali / akamai-token-auth
1.0.0
2019-02-20 00:30 UTC
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: 2022-02-01 13:14:28 UTC
README
生成由Akamai Auth Token 2.0使用的授权令牌。它可以用于HTTP Cookie、查询字符串和头部。您可以在https://control.akamai.com的属性管理器中进行配置。
安装
composer require matricali/akamai-token-auth
使用方法
use Matricali\Security\EdgeAuth\TokenAuth; $edgeAuth = new TokenAuth('aabbccddeeffgg00112233445566', TokenAuth::ALGORITHM_SHA256); /* @throws Matricali\Security\EdgeAuth\InvalidArgumentException */ $edgeAuth->setIp($client_ip); $authUrl = $edgeAuth->generateToken();