My Oracle Support Banner

How to pass securtiy header dynamically for Oauth authentication. (Doc ID 2738929.1)

Last updated on FEBRUARY 06, 2021

Applies to:

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

Goal

Step 1:
url for POST Call: https://login.test.com/oauth/token
Header: Authorization & Content-Type
Body: username, password, grant_type
Results returned after Step 1:
"access_token": "temp_test",
    "token_type": "bearer",
    "expires_in": 600,
    "refresh_token": "temp_test2"
}
Step2:
url for get call: https://test.com/v3/test/workorders/
Headers: Authorization(//it is Token we got from Step 1 POST call) & Content-Type
but on step 2 since the header is "Authorization" it is working fine when we pass as static secured header.
we tried with OAuth but that did not help.
How can we pass the token to "Authorization" for second call? when we try with custom header it is failing.

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


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