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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to pass Header value in Http header through URl

Chandler BingOct 12 2022

Hi All,
My application have Http Header authentication , so for access we have some internal portal(differnet technology) that have one menu on that redirect to apex application and pass value in header variable in http header with that user can login in my application ,so passing that value http is backend process there is other team with different technology do that so i dont know how they pass ok.
Now that http header authentication is new in application before that user enter username and password so now there is one functionality that impact is i share apex url with order number on user mail so user click on that after login user directly go to order page instead of home page,so i do that with addition of page item order id on login page and on home page i will redirect to order page if that item is not null.
so after add the http header authentication that not work because login page now not work so my requirement is that how can i set header value through apex url so i will login my application through url for example :- www.localhost:8080/ords/f?p=100:1:::::x-username:test.
can you please guide or any help?

This post has been answered by Chandler Bing on Oct 13 2022
Jump to Answer

Comments

AndyH

Header values cannot be passed as part of the URL.
Why would you want another user to access the application with your login details?
It's unclear what you mean by the "value HTTP is backend process". In general, you would create an HTTP Header based authentication in your APEX application - it takes the header value from the trusted source and uses that to determine the user.

Chandler Bing
Answer

Hi @andyh6
Thanks for your replay!
I want to pass http header value thorugh URL amd yes it take value from trusted source and uses that to determine the usrer but i have some case in my that i need for that just want to know is there any possible for that.
But i resolved my problem inseated of HTTP header authentication i used custom authentication and get header value from OWA_UTIL.GET_CGI_ENV(‘x-pass’) and do my task that i want.

Marked as Answer by Chandler Bing · Oct 13 2022
jariola

What is that x-pass header? I hope that isn't user password.

Chandler Bing

Hi @jariola no it just sample variable like some username.

AndyH

Glad that you've got it working.
One of the 'standard' APEX authentication mechanisms is the 'HTTP Header Variable' which does pretty much the same thing - you tell it which header variable represents your user (e.g. https://docs.oracle.com/en/database/oracle/application-express/20.2/htmdb/preconfigured-authentication-schemes.html#GUID-05061E24-672C-4E8E-870B-A4E8D0251523).

1 - 5

Post Details

Added on Oct 12 2022
5 comments
3,853 views