Skip to Main Content
Feature Request FR-4551
Product Area Developer Experience
Status CLOSED

8 Voters

multiple Authentication Schemes out of the box and include deep-linking as well with the owners

davide.nutricati Public
· Jul 9 2025

Idea Summary

Allow an application to register and use multiple authentication schemes out-of-the-box (for example Basic, Social Sign-In, SAML, OAuth2) and have APEX automatically handle deep-linking (capture & redirect RETURN_URL) for all of them, just as it does today for a single, native scheme.


Use Case

  • Mixed-access applications: Some pages public, some behind SAML, others via social login or custom REST-based auth.
  • Progressive rollout: Enable e.g. Social Sign-In on a subset of pages without disrupting existing database-user login.
  • Multi-tenant portals: Different customers require different identity providers (Azure AD, Google, Facebook) within the same app.
  • Consistent UX: Regardless of which scheme the user picks, deep-links (e.g. email notifications, bookmarks) always send them to the intended page after login.

Preferred Solution (Optional)

  1. APEX Builder Enhancement
    • In Shared Components > Authentication Schemes, allow selecting multiple active schemes and map each scheme to page-ranges or URL patterns.
  2. Automated Deep-Linking
    • Under the covers, APEX would:
      • On first request, detect the intended scheme, store the RETURN_URL in session/cookie
      • After authentication, retrieve and redirect to that RETURN_URL
    • Expose a declarative toggle (“Enable deep-linking”) so developers don’t have to write their own cookie/process logic.
  3. Plugin API
    • Extend apex_authentication APIs so custom schemes automatically inherit the RETURN_URL handling without extra PL/SQL.
This is a great idea! You can already achieve this in APEX today with a slightly different approach.

Comments

Comments

  • appex OP 1.2 years ago

    Support for this is highly desired - which could be a preference stored in tenant settings table along with identity provider details:

    • Multi-tenant portals: Different customers require different identity providers (Azure AD, Google, Facebook) within the same app.
  • carsten.czarski APEX Team OP 9 months ago

    Have a look at this blog posting which describes how to configure an app to use multiple Auth Schemes - this is indeed already possible.

    https://blogs.oracle.com/apex/how-to-enable-multi-authentication-in-an-oracle-apex-app

    (the interesting bits are more towards the end of the blog posting - the large first part deals which configuring an IDCS auth scheme, which might not be that of interest for everybody).

    What is “Switch in Session”?

    Think of Switch in Session as a simple mechanism that lets you tell APEX:

    “For this login attempt, use a different authentication scheme instead of the current one.”

    All it needs is a request value like APEX_AUTHENTICATION=passwordless_auth, and APEX will route the login process through your Oracle IAM scheme, without writing a single line of custom logic.

    This allows you to offer multiple login paths on the same login page, while keeping the user experience clean.

    To set it up:

    Let’s add a button to allow users to explicitly trigger IAM-based login:

    • Open your APEX login page in Page Designer.
    • Add a new button named IAM_LOGIN with the label Sign in with Oracle IAM.
    • Set the button action to Redirect to Page in this Application, and choose the page you want users to land on after login (e.g., page 1 or the dashboard).
    • Under Advanced > Request, enter **APEX_AUTHENTICATION=IAM** (replace IAM with the exact name of your Oracle IAM authentication scheme).
    • Optionally, use the Hot button template or add an icon to make this button stand out on the login page.

    That’s it, when a user clicks the IAM login button, APEX will switch to that scheme, launch the OAuth2 flow with Oracle IAM, and bring them back once authenticated