My Oracle Support Banner

HTTP/1.1 401 Unauthorized - Ansible script making call to PSM REST API fails (Doc ID 2869757.1)

Last updated on MAY 16, 2022

Applies to:

SOA Suite Cloud Service - Version 12.2.1.3 to 12.2.1.4
Information in this document applies to any platform.

Goal

On : SOACS, PSM Core APIManager related issues

We are using a Ansible script developed in 2019 to provision a new SOA environment, but it is failing on first call to PSM with
HTTP/1.1 401 Unauthorized

We have isolated the code not working and able to reproduce error with curl:-

HTTP/1.1 401 Unauthorized
Content-Type: text/plain
Content-Length: 0
X-ORACLE-DMS-ECID: xxxxxxxxxxxxxxx
X-Frame-Options: DENY
X-ORACLE-DMS-RID: 0:1
WWW-Authenticate: Basic realm="owsm"
Content-Language: en
Date: Fri, 13 May 2022 18:25:18 GMT

 

The user is an IDCS user & the same one that was used to provision all our SOA instances (Ansible automated provisioning code, but we reproduced the issue using curl). The password appears correct as the provisioning code successfully used the same credentials to create an OCI DBCS instance before failing to query the PSM API. The user doesn't need Multi Factor Authentication, but does not have permission to log into the OCI console (it never has had, for security reasons as it is a service account). The user is in the SOA Administrators group.

Solution

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