EdgeGrid auth token

New-EdgeAuthToken

Synopsis

Create an Edge auth token.

Syntax

New-EdgeAuthToken -Secret <String> [-StartTime <Int32>] [-EndTime <Int32>] [-DurationInSeconds <Int32>] [-DurationInMinutes <Int32>] [-DurationInHours <Int32>] [-URL <String>] [-EscapeInputs] [-IP <String>] [-Data <String>] [-ID <String>] [-Salt <String>] [-Delimiter <String>] [-Algorithm <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
New-EdgeAuthToken -Secret <String> [-StartTime <Int32>] [-EndTime <Int32>] [-DurationInSeconds <Int32>] [-DurationInMinutes <Int32>] [-DurationInHours <Int32>] [-ACL <String>] [-EscapeInputs] [-IP <String>] [-Data <String>] [-ID <String>] [-Salt <String>] [-Delimiter <String>] [-Algorithm <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Description

Various Akamai services make use of Token Authentication or similar services, which require encrypted tokens. This function will create such a token from the given inputs for you to use in testing or live requests.

Parameters

‑ACL

An acl element to include in the edge auth token.

‑Algorithm

An algorithm to use in calculating the edge auth token signature. Defaults to sha256 but also accepts sha1 and md5.

‑Data

The data element to include in the edge auth token.

‑Delimiter

the field delimiter. Defaults to ~.

‑DurationInHours

The token duration in hours. During token generation, it's converted to seconds.

‑DurationInMinutes

The token duration in minutes. During token generation, it's converted to seconds.

‑DurationInSeconds

The token duration in seconds.

‑EndTime

The token end time in epoch format.

‑EscapeInputs

When the switch parameter is present, it forces a URL token element to be URL-encoded.

‑ID

The id element to include in the edge auth token.

‑IP

The ip element to include in the edge auth token.

‑Salt

The salt element to include in the edge auth token.

‑Secret
Required

The secret key for encryption.

‑StartTime

The token start time in epoch format.

‑URL

The url element to include in the edge auth token.

Related Links

User Guide: Overview