"403 Permission Denied" on API when Adding New JWK via POST https://{OktaDomainName}/api/v1/apps/{appId}/credentials/jwks
Okta Classic Engine
Okta Identity Engine
API Access Management
Overview

This article explains why a 403 Permission Denied error occurs when attempting to add a new JSON Web Key (JWK) via the API using OAuth tokens. This error is returned when performing a POST request to the https://<OktaDomainName>/api/v1/apps/<appId>/credentials/jwks endpoint:

 

You do not have permissions to perform the requested action

 

Error summary

Applies To
  • Okta Management API
  • OAuth 2.0
  • JSON Web Key (JWK)
Cause

The issue occurs because the client application attempts to use a bearer token issued to authorize an action that grants new privileges to itself or other apps. This pattern, known as a self-authorization loop, is currently not supported by the system as a security measure.

Solution

The operation can be performed from the Admin Console as described in the article below.

 

Recommended content

No recommended content found...