Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-29T03:13:11.000Z (over 5 years ago)
- Last Synced: 2024-11-01T10:51:30.606Z (3 months ago)
- Topics: akamai, composer, edge-auth, php, php-library, security, signature, token
- Language: PHP
- Homepage:
- Size: 20.5 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# php-edge-auth
[![Latest Stable Version](https://poser.pugx.org/matricali/akamai-token-auth/v/stable)](https://packagist.org/packages/matricali/akamai-token-auth)
[![Build Status](https://travis-ci.org/matricali/php-edge-auth.svg?branch=master)](:status:) [![Coverage Status](https://coveralls.io/repos/github/matricali/php-edge-auth/badge.svg?branch=master)](https://coveralls.io/github/matricali/php-edge-auth?branch=master)
[![MIT licensed](https://img.shields.io/github/license/matricali/php-edge-auth.svg)](https://matricali.mit-license.org/2017)
[![Total Downloads](https://poser.pugx.org/matricali/akamai-token-auth/downloads)](https://packagist.org/packages/matricali/akamai-token-auth)
[![Latest Unstable Version](https://poser.pugx.org/matricali/akamai-token-auth/v/unstable)](https://packagist.org/packages/matricali/akamai-token-auth)
[![composer.lock](https://poser.pugx.org/matricali/akamai-token-auth/composerlock)](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();
```