My Oracle Support Banner

401 Unauthorized For OAUTH2, ORDS Weblogic Deployment (Doc ID 2901152.1)

Last updated on OCTOBER 09, 2022

Applies to:

Oracle REST Data Services - Version 21.2.4 and later
Information in this document applies to any platform.

Symptoms

ORDS deployed in Weblogic. Enabled OAuth2 using the below document steps for the REST API modules.

Oracle REST Data Services Demo - Authentication OAUTH2 Client Credentials / Two Party (Doc ID 2305958.1)

Running CURL command to test OAuth authentication shows below error

curl -i -k --user XXXXXXXX..:XXXXXX.. --data "grant_type=client_credentials" http://<HOSTNAME>:<PORT>/ords/<MODULE_NAME>/oauth/token

HTTP/1.1 401 Unauthorized
Date: <TIMESTAMP>
Content-Length: 1468
Content-Type: text/html; charset=UTF-8
WWW-Authenticate: Basic realm="weblogic”
X-ORACLE-DMS-RID: 0
X-Content-Type-Options: nosniff
X-ORACLE-DMS-ECID: <ECID>
X-Frame-Options: DENY

Changes

 Enabled OAuth for the REST module in ORDS

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