Skip to content

mattwithoos/php-edge-auth

 
 

Repository files navigation

php-edge-auth

Latest Stable Version Build Status Coverage Status MIT licensed Total Downloads Latest Unstable Version composer.lock

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();

About

PHP Library that generates authorization token used by Akamai Auth Token 2.0.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%