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 callback timeout (using social sign-on)

Peter StroyerFeb 12 2020 — edited Feb 13 2020

Hi!

I have a strange issue in one of our APEX environments where we are using the social sign-on feature to authenticate against Azure AD. It works in all other environments except production (unfortunately..), but we cannot find any logical explanation to why it fails in this specific  environment.

APEX correctly calls Azure and authentication seems to succeed, but when the browser session is directed back to APEX (via the configured redirect URL in Azure) we get a HTTP request timeout error (see below).

In approx. 1 out of 4 or 5 times the redirection goes through - but most times it just gets timeout. I would really appreciate any good ideas on how to trouble-shoot this. Especially the fact that it succeeds if attempting the login a few times in succession puzzles me. Initially I suspected some network security settings preventing the call-back in the affected environment, but since it works sometimes I have ruled that out.

CGI: PATH_INFO = /apex_authentication.callback?code=OAQABAAIAAABeAFzDwllzTYGDLh_qYbH8rKYQZyZ8hfuqtRrKKrtJblGyxr2uwoN9VIbKOruaVp3pwIewTchsGcHfN1KKrIGktfP9oi4zKtvj3Pk2havjifAcaNGhM7-tITelxXmAPnfvrwde-Lj8JE7g09Lm4OVEYRfdqzPqGYVgfKdUF17TrYwUY1Ba3dlMzenfZU4cxuP7JRbLtqb1WIZzIphveikZrbyEhmTjSf3RTHneE3ZSeP1vJ6LBIfoULzkr4670QmIayKU-Ll-Dw9EpLBhmwkVpbWeIm8RFCglM82NaPYIGtojupKgEN0Y1PMGb2_8vhTZLwUNYdDeNWVU-GC-czB6-NVzvtGs-H74pbaCmCIacMQuJojD5x_SnIXGxy9A_skg97mZ6wa1oN8ZCWgnvjIIi4qqwJnYndWhgtRwPPvEky-uxOEDOEYZv9fNyLE_Z466mXwC9UEQ_kSbzp35ctfPIY_76f9J0PTXgZsb46lRxgaCKCb3y8qGCLwftOOJskBjPyJMR6OKCTrEWox4PwK35gX0O5k_MI_AxHoWJYoo15oVTfDeK6Qh6gNHAIaPb8ev6Xd6K5EmAhStyXjK14AFnSZUFOzgl7XurpDzie0jC_HWL_nKYsratRpDNkp7wNX5cWVakcnqWg3cizHBnXyPvQrrCHC-F_bzIoMPRVrGw6LzOPfjLoTAW3mVCWyB2zi5u1SpNbcnbHGB6jsPcr0yz24XOLhAb6OC1W9pL6TbEyitKTvPY94d4j4odgr4Gz8hdTIODcGpowGstslB0WhwZxlRREbpIzzgtJT8ODC1yFiAA&state=ou_7YbgHLNV9SKUmpr39-tX5QBVIRpl5vzHtHoliYnxK7wZKZ8-tlVH4mRW0ICt2P7lcYZsrd4v_VrceWyefwKIT6RaDo5sglGdGFejvRnU&session_state=dea29739-7347-473b-9bb0-51b8a3e1a5ab

GET https://[------HIDDEN-----------]:8080/ords REMOTE_ADDR=------HIDDEN----------- REMOTE_USER=APEX_PUBLIC_USER APEX_LISTENER_VERSION=19.2.0.r1991647 REFERER=https://------HIDDEN-----------:8080/ords/f?p=500:LOGIN_DESKTOP:14045266830624::::: HTTP_COOKIE=AWSALBTG=dlA0CHYPScItCDjYE0lc0DGj5N1/ZyFyq4LM2e4yzVsV8mkWJUszfGh50OfbqIF1ufwWdM6WwPeF6m25xn6OrRY9jN1ZVnSiO14UR8TSGqlR0AdRnqsmBVGvVpp8SE00nZhuATgzynppWJ9zSXQB8L7gR2wNIYi6w3aMKS5bQXfGdHdYvMc=; AWSALBTGCORS=dlA0CHYPScItCDjYE0lc0DGj5N1/ZyFyq4LM2e4yzVsV8mkWJUszfGh50OfbqIF1ufwWdM6WwPeF6m25xn6OrRY9jN1ZVnSiO14UR8TSGqlR0AdRnqsmBVGvVpp8SE00nZhuATgzynppWJ9zSXQB8L7gR2wNIYi6w3aMKS5bQXfGdHdYvMc=

- ora_sqlerrm: ORA-29273: HTTP request failed ORA-06512: at "APEX_180200.WWV_FLOW_WEB_SERVICES", line 1017 ORA-12535: TNS:operation timed out ORA-06512: at "SYS.UTL_HTTP", line 380 ORA-06512: at "SYS.UTL_HTTP", line 1148 ORA-06512: at "APEX_180200.WWV_FLOW_WEB_SERVICES", line 917 ORA-06512: at "APEX_180200.WWV_FLOW_WEB_SERVICES", line 1523 ORA-06512: at "APEX_180200.WWV_FLOW_WEBSERVICES_API", line 369 ORA-06512: at "APEX_180200.WWV_FLOW_AUTHENTICATION_NATIVE", line 452 ORA-06512: at "APEX_180200.WWV_FLOW_AUTHENTICATION_NATIVE", line 687 ORA-06512: at "APEX_180200.WWV_FLOW_AUTHENTICATION_NATIVE", line 1790 ORA-06512: at "APEX_180200.WWV_FLOW_PLUGIN", line 2907 ORA-06512: at "APEX_180200.WWV_FLOW_PLUGIN", line 3067 ORA-06512: at "APEX_180200.WWV_FLOW_AUTHENTICATION", line 1748

Any good ideas among you smart people? :-)

Br.  Peter Stroyer

This post has been answered by Peter Stroyer on Feb 13 2020
Jump to Answer
Comments
Post Details
Added on Feb 12 2020
4 comments
1,509 views