https://github.com/matricali/php-edge-auth
PHP Library that generates authorization token used by Akamai Auth Token 2.0.
https://github.com/matricali/php-edge-auth
akamai composer edge-auth php php-library security signature token
Last synced: 3 months ago
JSON representation
PHP Library that generates authorization token used by Akamai Auth Token 2.0.
- Host: GitHub
- URL: https://github.com/matricali/php-edge-auth
- Owner: matricali
- License: mit
- Created: 2017-06-27T19:46:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-05-29T03:13:11.000Z (about 6 years ago)
- Last Synced: 2025-03-28T21:02:56.400Z (4 months ago)
- Topics: akamai, composer, edge-auth, php, php-library, security, signature, token
- Language: PHP
- Homepage:
- Size: 20.5 KB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# php-edge-auth
[](https://packagist.org/packages/matricali/akamai-token-auth)
[](:status:) [](https://coveralls.io/github/matricali/php-edge-auth?branch=master)
[](https://matricali.mit-license.org/2017)
[](https://packagist.org/packages/matricali/akamai-token-auth)
[](https://packagist.org/packages/matricali/akamai-token-auth)
[](https://packagist.org/packages/matricali/akamai-token-auth)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
```php
use Matricali\Security\EdgeAuth\TokenAuth;$edgeAuth = new TokenAuth('aabbccddeeffgg00112233445566', TokenAuth::ALGORITHM_SHA256);
/* @throws Matricali\Security\EdgeAuth\InvalidArgumentException */
$edgeAuth->setIp($client_ip);$authUrl = $edgeAuth->generateToken();
```