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!

504 Gateway Timeout using APEX_AUTHENTICATION.CALLBACK

Mathew RobertsApr 1 2025

Hi All,

I'm attempting to setup 2 factor authentication on an Apex app I've developed. I've followed the tutorial here: ORACLE-BASE - Azure AD Authentication for Oracle APEX Applications : Social Sign In

At the moment when I attempt to access my app, it redirects to login.microsoftonline.com where I enter my username and password, then once I hit enter, it takes a while to process before timing out with the following error: 504 Gateway Time-out.

I can see in the url of my app after /ords/ it shows apex_authentication.callback.

When I go to Monitor Activity > By View I can see the following…

Page View Type: Authentication Call Back

Request Value: -

Error Message: ORA-30699: network connection failed: connection timed out (user=)

If I run the following in sql commands

SELECT apex_web_service.make_rest_request( p_url => 'https://graph.microsoft.com/v1.0/me', p_http_method => 'GET' ) FROM dual;

I also get the 504 Gateway Time-out error.

I created new application with just a small region with a little bit of data, and tested it on that application, it also timed out as well.

What could be causing the issue?

Kind Regards,

Mat

Comments
Post Details
Added on Apr 1 2025
1 comment
241 views