Idira Identity: Getting 401 unauthorized Error when using API calls with OAuth2 Client

Idira Identity: Getting 401 unauthorized Error when using API calls with OAuth2 Client

148
Created On 11/10/26 10:54 AM - Last Modified 11/10/26 15:51 PM


Symptom


We are using API calls with OAuth2 Client, we got Error 401 when we are trying to call the apis.

<!doctype html>
<html>
<head>
    <title>Idaptive</title>
    <link rel="stylesheet" type="text/css"
        href="https://podxxxx.idaptive.app/vfslow/lib/branding/idaptive/errorpages/style.css" />
</head>
<body class="error idaptive">
    <div class="wrap">
        <img src="https://podxxxx.idaptive.app/vfslow/lib/branding/idaptive/errorpages/cyberark-logo.svg">
        <div class="text">
            <h1>Error 401</h1>
            <p>You do not have access to this content. Please contact your system administrator for assistance.</p>
        </div>
    </div>
</body>
</html>


Cause


Here are the possible causes:

1. The bearer token is invalid

2. There are spaces in Scope Name 
Annotation 2022-05-13 171121.jpg


Resolution


1. Make sure you have generated the bearer token correctly.

2. Remove any spaces in the name of Scope defined, then generate a new token again.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000n2NCAQ&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail