My Oracle Support Banner

Passing Authorization Bearer Token In HTTP Header For GET Operation Fails With "401 UnAuthorized" Error (Doc ID 2812101.1)

Last updated on OCTOBER 05, 2021

Applies to:

Oracle Integration-OIC - Version and later
Information in this document applies to any platform.


On : N/A version, Rest Adapter

To Invoke External service protected with 2-Legged OAuth Authentication, external service sending the OAuth token in HTML format instead of JSON. Used custom code to retrieve the Auth Bearer token and pass manually for 2nd call to invoke the end service (through Authorization Header)

It works fine for POST operation, but GET and DELETE operation fails.

401 UnAuthorized

The issue can be reproduced at will with the following steps:
1. Call REST endpoint with GET / DELETE operation by manually passing auth token in headers.



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

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