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!

Invoke REST service protected by Required Privilege

Pavel_pApr 18 2017 — edited Apr 20 2017

Hello everybody,

this is a followup to this thread Apply Authentication on RESTful (GET, POST) resource handlers .

Please, does anybody know how invoke a REST service that requires a privilege? I created a showcase on apex.oracle.com

workspace: testing

user: test (workspace admin)

pwd: test

There is a REST service "secured_emp" that requires a privilege. I created a Privilege (secemp_priv), secemp_svc_caller group  and my app user test is a member of the secemp_svc_caller.

Then I created an application Application 105217 - sec_emp and in the shared components there is a web service reference to my protected endpoint. Then I created a page 2 based on this web service reference and I'm able to invoke the service until I secure it by assigning Required Privilege.

Please, is anybody able to tell me what I'm missing and make it running? I'm getting 401 Unauthorized no matter what I try.

Thanks a lot,

Pavel

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 18 2017
Added on Apr 18 2017
7 comments
1,398 views