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!

How to get username within the RESTful handler?

svmsFeb 18 2014 — edited Feb 24 2014

Apex Listener 2.0.5

Apex 4.2.4

I have a RESTful service with a POST handler (type PL/SQL) and I have also an apex application with the database authentication schema that is requesting this RESTful service.

RESTful POST handler contains following query:

insert into sometable(id,data,create_user)

values (some_value,some_value, ?)

Is it possible to obtain current username within RESTful handlers ?

Standard functions like v('APP_USER'), APEX_CUSTOM_AUTH.GET_SESSION_ID_FROM_COOKIE are not working.

I can pass it directly via cookie as a plain text but it's too insecure. Users can easly change cookies. How to do it safety ?

Thanks in advance,

Igor

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2014
Added on Feb 18 2014
7 comments
859 views