Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Not able to use p_credential_static_id in APEX_WEB_SERVICE

DeepaliG-OracleMar 11 2020 — edited Jun 16 2020

Hi,

Following the blog: https://www.jmjcloud.com/blog/simplifying-apex_web_service-oauth2-client-credentials I am trying to make single call to fetch token and invoke a Rest API. I followed all the steps mentioned but always get "HTTP Status Code: 401" in response.

It works fine, if I change it to 2 steps process:

1. First to fetch token : apex_web_service.oauth_authenticate

2. Second to make Rest API call: apex_web_service.make_rest_request

Can anyone please help on how to avoid these 2 steps and do a single call so that token fetch/renew is managed internally.

I am using Apex version 19.2.

Thanks,

Deepali

This post has been answered by DeepaliG-Oracle on Mar 15 2020
Jump to Answer
Comments
Post Details
Added on Mar 11 2020
5 comments
7,203 views