---
updatedAt: 2026-03-01T18:41:24.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/property-mgr/llms.txt
---

# verifyJsonWebTokenForDcp

<ul>
<li><strong>Property Manager name</strong>: <a href="doc:jwt">JWT</a></li>

<li><strong>Behavior version</strong>: The <code>latest</code> rule format supports the <code>verifyJsonWebTokenForDcp</code> behavior v1.0.</li>

<li><strong>Rule format status</strong>: <a href="ref:api-versioning">Beta, possible breaking changes</a></li>

<li><strong>Access</strong>: <a href="ref:advanced-and-locked-features">Read/Write</a></li>

<li><strong>Allowed in includes</strong>: <a href="ref:includes#relationship-with-parent-properties">Not available for <code>latest</code> rule format</a></li>
</ul><hr />

<p>This behavior allows you to use JSON web tokens (JWT) to verify requests for use in implementing <a href="https://techdocs.akamai.com/iot-edge-connect">Io​T Edge Connect</a>, which you use the <a href="ref:latest-dcp"><code>dcp</code></a> behavior to configure. You can specify the location in a request to pass a JSON web token (JWT), collections of public keys to verify the integrity of this token, and specific claims to extract from it. Use the <a href="ref:latest-verify-json-web-token"><code>verify​Json​Web​Token</code></a> behavior for other JWT validation.</p>

<p>When authenticating to edge servers with both JWT and mutual authentication (using the <a href="ref:latest-dcp-auth-variable-extractor"><code>dcp​Auth​Variable​Extractor</code></a> behavior), the JWT method is ignored, and you need to authenticate with a client authentication certificate.</p>

<table class="xdep">
<thead class="xdep">
<tr class="row_head">
<th>Option</th>
<th>Type</th>
<th>Description</th>
<th><a href="ref:latest-behaviors#object-requirements">Requires</a></th>
</tr>
</thead>
<tbody class="xdep">
<tr class="row_option extractLocation" id="extract-location" >
<td class><code>extract​Location</code></td>
<td>enum </td>
<td><p>Specifies where to get the JWT value from.</p></td>
<td></td>
<th><pre class="input">{"displayType":"enum","options":["CLIENT_REQUEST_HEADER","QUERY_STRING","CLIENT_REQUEST_HEADER_AND_QUERY_STRING"],"tag":"select"}</pre><pre class="visible"></pre></th></tr>
<tr class="row_enum extractLocation">
<td></td>
<td><code>CLIENT_​REQUEST_​HEADER</code></td>
<td><p>From the client request header.</p></td>
<td></td>
</tr>
<tr class="row_enum extractLocation">
<td></td>
<td><code>QUERY_​STRING</code></td>
<td><p>From the query string.</p></td>
<td></td>
</tr>
<tr class="row_enum extractLocation">
<td></td>
<td><code>CLIENT_​REQUEST_​HEADER_​AND_​QUERY_​STRING</code></td>
<td><p>From both.</p></td>
<td></td>
</tr>
<tr class="row_option primaryLocation" id="primary-location" data-visible='{"if":{"attribute":"extractLocation","op":"eq","value":"CLIENT_REQUEST_HEADER_AND_QUERY_STRING"}}'>
<td class><code>primary​Location</code></td>
<td>enum </td>
<td><p>Specifies the primary location to extract the JWT value from. If the specified option doesn't include the JWTs, the system checks the secondary one.</p></td>
<td><code>extract​Location</code> is <code>CLIENT_​REQUEST_​HEADER_​AND_​QUERY_​STRING</code></td>
<th><pre class="input">{"displayType":"enum","options":["CLIENT_REQUEST_HEADER","QUERY_STRING"],"tag":"select"}</pre><pre class="visible">{"if":{"attribute":"extractLocation","op":"eq","value":"CLIENT_REQUEST_HEADER_AND_QUERY_STRING"}}</pre></th></tr>
<tr class="row_enum primaryLocation">
<td></td>
<td><code>CLIENT_​REQUEST_​HEADER</code></td>
<td><p>Get the JWT value from the request header.</p></td>
<td></td>
</tr>
<tr class="row_enum primaryLocation">
<td></td>
<td><code>QUERY_​STRING</code></td>
<td><p>Get the JWT value from the query string.</p></td>
<td></td>
</tr>
<tr class="row_option customHeader" id="custom-header" data-visible='{"if":{"attribute":"extractLocation","op":"in","value":["CLIENT_REQUEST_HEADER","CLIENT_REQUEST_HEADER_AND_QUERY_STRING"]}}'>
<td class><code>custom​Header</code></td>
<td>boolean </td>
<td><p>The JWT value comes from the <code>X-Akamai-DCP-Token</code> header by default.  Enabling this option allows you to extract it from another header name that you specify.</p></td>
<td><code>extract​Location</code> is either: <code>CLIENT_​REQUEST_​HEADER</code>, <code>CLIENT_​REQUEST_​HEADER_​AND_​QUERY_​STRING</code></td>
<th><pre class="input">{"displayType":"boolean","tag":"input","type":"checkbox"}</pre><pre class="visible">{"if":{"attribute":"extractLocation","op":"in","value":["CLIENT_REQUEST_HEADER","CLIENT_REQUEST_HEADER_AND_QUERY_STRING"]}}</pre></th></tr>
<tr class="row_option headerName" id="header-name" data-visible='{"if":{"attribute":"customHeader","op":"eq","value":true}}'>
<td class><code>header​Name</code></td>
<td>string </td>
<td><p>This specifies the name of the header to extract the JWT value from.</p></td>
<td><code>custom​Header</code> is <code>true</code></td>
<th><pre class="input">{"displayType":"string","tag":"input","type":"text"}</pre><pre class="visible">{"if":{"attribute":"customHeader","op":"eq","value":true}}</pre></th></tr>
<tr class="row_option queryParameterName" id="query-parameter-name" data-visible='{"if":{"attribute":"extractLocation","op":"in","value":["QUERY_STRING","CLIENT_REQUEST_HEADER_AND_QUERY_STRING"]}}'>
<td class><code>query​Parameter​Name</code></td>
<td>string </td>
<td><p>Specifies the name of the query parameter from which to extract the JWT value.</p></td>
<td><code>extract​Location</code> is either: <code>QUERY_​STRING</code>, <code>CLIENT_​REQUEST_​HEADER_​AND_​QUERY_​STRING</code></td>
<th><pre class="input">{"displayType":"string","tag":"input","type":"text"}</pre><pre class="visible">{"if":{"attribute":"extractLocation","op":"in","value":["QUERY_STRING","CLIENT_REQUEST_HEADER_AND_QUERY_STRING"]}}</pre></th></tr>
<tr class="row_option jwt" id="jwt" >
<td class><code>jwt</code></td>
<td>string </td>
<td><p>An identifier for the JWT keys collection.</p></td>
<td></td>
<th><pre class="input">{"displayType":"string","tag":"input","type":"text"}</pre><pre class="visible"></pre></th></tr>
<tr class="row_option extractClientId" id="extract-client-id" >
<td class><code>extract​Client​Id</code></td>
<td>boolean </td>
<td><p>Allows you to extract the client ID claim name stored in JWT.</p></td>
<td></td>
<th><pre class="input">{"displayType":"boolean","tag":"input","type":"checkbox"}</pre><pre class="visible"></pre></th></tr>
<tr class="row_option clientId" id="client-id" data-visible='{"if":{"attribute":"extractClientId","op":"eq","value":true}}'>
<td class><code>client​Id</code></td>
<td>string </td>
<td><p>This specifies the claim name.</p></td>
<td><code>extract​Client​Id</code> is <code>true</code></td>
<th><pre class="input">{"displayType":"string","tag":"input","type":"text"}</pre><pre class="visible">{"if":{"attribute":"extractClientId","op":"eq","value":true}}</pre></th></tr>
<tr class="row_option extractAuthorizations" id="extract-authorizations" >
<td class><code>extract​Authorizations</code></td>
<td>boolean </td>
<td><p>Allows you to extract the authorization groups stored in the JWT.</p></td>
<td></td>
<th><pre class="input">{"displayType":"boolean","tag":"input","type":"checkbox"}</pre><pre class="visible"></pre></th></tr>
<tr class="row_option authorizations" id="authorizations" data-visible='{"if":{"attribute":"extractAuthorizations","op":"eq","value":true}}'>
<td class><code>authorizations</code></td>
<td>string </td>
<td><p>This specifies the authorization group name.</p></td>
<td><code>extract​Authorizations</code> is <code>true</code></td>
<th><pre class="input">{"displayType":"string","tag":"input","type":"text"}</pre><pre class="visible">{"if":{"attribute":"extractAuthorizations","op":"eq","value":true}}</pre></th></tr>
<tr class="row_option extractUserName" id="extract-user-name" >
<td class><code>extract​User​Name</code></td>
<td>boolean </td>
<td><p>Allows you to extract the user name stored in the JWT.</p></td>
<td></td>
<th><pre class="input">{"displayType":"boolean","tag":"input","type":"checkbox"}</pre><pre class="visible"></pre></th></tr>
<tr class="row_option userName" id="user-name" data-visible='{"if":{"attribute":"extractUserName","op":"eq","value":true}}'>
<td class><code>user​Name</code></td>
<td>string </td>
<td><p>This specifies the user name.</p></td>
<td><code>extract​User​Name</code> is <code>true</code></td>
<th><pre class="input">{"displayType":"string","tag":"input","type":"text"}</pre><pre class="visible">{"if":{"attribute":"extractUserName","op":"eq","value":true}}</pre></th></tr>
<tr class="row_option enableRS256" id="enable-rs256" >
<td class><code>enable​RS256</code></td>
<td>boolean </td>
<td><p>Verifies JWTs signed with the RS256 algorithm. This signature helps to ensure that the token hasn't been tampered with.</p></td>
<td></td>
<th><pre class="input">{"displayType":"boolean","tag":"input","type":"checkbox"}</pre><pre class="visible"></pre></th></tr>
<tr class="row_option enableES256" id="enable-es256" >
<td class><code>enable​ES256</code></td>
<td>boolean </td>
<td><p>Verifies JWTs signed with the ES256 algorithm. This signature helps to ensure that the token hasn't been tampered with.</p></td>
<td></td>
<th><pre class="input">{"displayType":"boolean","tag":"input","type":"checkbox"}</pre><pre class="visible"></pre></th></tr>
</tbody>
</table>