This library implements an Authentication handler for the Akamai EdgeGrid Authentication scheme for LWP Perl.
To install this module and all dependencies:
cpan .
To install only this module, run these commands:
perl Makefile.PL
make
make test
make install
We provide authentication credentials through an API client. Requests to the API are signed with a timestamp and are executed immediately.
-
Place your credentials in an EdgeGrid resource file,
.edgerc
, under a heading of[default]
at your local home directory or the home directory of a web-server user.[default] client_secret = C113nt53KR3TN6N90yVuAgICxIRwsObLi0E67/N8eRN= host = akab-h05tnam3wl42son7nktnlnnx-kbob3i3v.luna.akamaiapis.net access_token = akab-acc35t0k3nodujqunph3w7hzp7-gtm6ij client_token = akab-c113ntt0k3n4qtari252bfxxbsl-yvsdj
To use the library, provide the path to your local .edgerc
resource file, your credentials' section header, and the appropriate endpoint information.
use Akamai::Edgegrid;
my $agent = new Akamai::Edgegrid(
config_file => "$ENV{HOME}/.edgerc",
section => "default");
my $baseurl = "https://" . $agent->{host};
my $resp = $agent->get("$baseurl/identity-management/v3/user-profile");
print $resp->content;
After installing, you can find documentation for this module with the perldoc
command.
perldoc Akamai::Edgegrid
You can also look for information at:
-
RT, CPAN's request tracker (report bugs here)
To report an issue or make a suggestion, create a new GitHub issue.
Copyright 2024 Akamai Technologies, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.