My Oracle Support Banner

Get auth token via curl command is failed with 401 (Doc ID 2852935.1)

Last updated on MARCH 07, 2022

Applies to:

Visual Builder Studio - Version 21.10.2 and later
Information in this document applies to any platform.

Symptoms

It is able to get auth token like below command.

curl -v -i -X POST -H "Content-Type:application/x-www-form-urlencoded" -H
"Authorization:Basic <base64 Encoded Text>" "https://<SERVICENAME>-<CLOUDACCOUNT>.<SERVICETYPE>.ocp.oraclecloud.com/ic/builder/basicauth"

However, the same command from another client on another network environment is failed with 401.

curl response example:
:
< HTTP/1.1 401 Unauthorized
HTTP/1.1 401 Unauthorized
< Date: <DATE>
Date: <DATE>
< Content-Type: text/html
Content-Type: text/html
< Content-Length: 172
Content-Length: 172
< Connection: keep-alive
Connection: keep-alive
< www-authenticate: Basic realm=""
www-authenticate: Basic realm=""
< Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload

<
<html>
<head><title>401 Authorization Required</title></head>
<body>
<center><h1>401 Authorization Required</h1></center>
<hr><center>nginx</center>
</body>
</html>
:

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.