I'm working with a client using Azure to authenticate. We have setup a Social Sign In authentication scheme, with the Authorization Endpoint URL, Token Endpoint URL, Client ID and Client Secret, and that part is working as verified by the client. However, they need to set a reply URL, which in APEX is called the callback URL.
Using function apex_authentication.get_callback_url I can retrieve what it is:
SQL> exec dbms_output.put_line(apex_authentication.get_callback_url)
http://:https://[server-name]/ords/abelas/apex_authentication.callback?p_session_id=&p_app_id=&p_ajax_identifier=%2Finvalidchecksum&p_page_id=
That looks funny/buggy with the http and https, but we did try it anyway, but it failed. Also https://[server-name]/ords/abelas/apex_authentication.callback as reply URL did not work.
I found this post by Jon Dixon: https://forums.oracle.com/ords/apexds/post/apex-authentication-get-callback-url-returning-http-url-ins-0066 and have set <entry key="security.forceHTTPS">true</entry> . And we verified that we don't have <entry key="security.httpsHeaderCheck">X-Forwarded-Proto: https</entry> present. ORDS was restarted, but the get_callback_url still returns the http://https:// string.
Any ideas how to fix this?
APEX 23.1.2 & ORDS 24.3.2