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
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.