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!

apex_authentication.get_callback_url Returning HTTP URL Instead of HTTPS

Jon DixonNov 4 2023

We recently changed ORDS to run in Standalone mode, instead of within Tomcat.

  • ORDS version 23.2, APEX Version 21.2, DB Version 19c
  • ORDS is running on Port 8080 but behind a Load Balancer
  • SSL is being terminated at the load balancer

The below settings are set in ORDS settings.xml:
<entry key="security.externalSessionTrustedOrigins">https://example.com</entry>
<entry key="security.httpsHeaderCheck">X-Forwarded-Proto: https</entry>

You can navigate around APEX pages just fine over HTTPS. The problem occurs when generating a Callback URL to Authenticate against Active Directory. APEX is passing AD an HTTP URL.

Also, if you run the following from APEX Builder SQL Command, you get an HTTP URL.

select apex_authentication.get_callback_url from dual;

This post has been answered by Jon Dixon on Nov 6 2023
Jump to Answer
Comments
Post Details
Added on Nov 4 2023
2 comments
1,271 views