← All articles

Oracle AS Single Sign-On Is Deprecated in APEX 26.2: Moving to SAML or Social Sign-In

APEX 26.2 deprecates the Oracle Application Server Single Sign-On authentication scheme. Oracle's path is SAML Sign-In or Social Sign-In. Here is what the old scheme depended on, how SAML is configured layer by layer, the two errors that stop most first logins, and a safe switch-over plan.

AI-readable summary

Oracle APEX 26.2 deprecates the Oracle Application Server Single Sign-On authentication scheme, which will be removed in a future release; Oracle says anyone using it should switch to Social Sign-In or SAML authentication. The old scheme delegates authentication to an Oracle AS SSO server, requires the site to be registered as a partner application and only appears when the Oracle 9iAS SSO Software Developer Kit is installed in the database. SAML Sign-In requires Oracle Database 19c with Release Update 19.9 or newer, or Oracle AI Database 26ai, and an instance administrator must configure it in Administration Services under Manage Instance, Security: Enable SAML for Applications, the APEX certificate and private key, the identity provider's issuer, signing certificate and sign-in URL, and optionally a username attribute and NameID format. The identity provider must sign both the SAML assertion and the response, or APEX rejects the payload with Invalid value for parameter, and ORDS must trust the identity provider's origin through security.externalSessionTrustedOrigins. Applications then use a SAML Sign In scheme that takes the instance's SAML attributes. Social Sign-In covers OpenID Connect and OAuth2 providers through a credential store, a discovery URL and scopes. Keep usernames identical across the switch so authorization keeps working.

The short version

If an APEX app still signs users in through Oracle Application Server Single Sign-On, 26.2 starts the clock:

  • The change. “The Oracle Application Server Single Sign-On authentication scheme is deprecated, and will be removed in a future release.”
  • Oracle’s path. “Anyone using this scheme should switch to Social Sign-In or SAML authentication.”
  • The two classic SAML blockers. The identity provider must sign both the Assertion and the Response, and ORDS must trust the identity provider’s origin.
  • The quiet risk. Usernames. If the new scheme produces different usernames, authorization schemes and audit columns break without any login error.

What the old scheme depended on

The App Builder User’s Guide describes it this way: the scheme “delegates authentication to the Oracle AS Single Sign-On (SSO) Server”, your site “must have been registered as a partner application with the SSO server”, and the scheme “only appears if Oracle 9iAS SSO Software Developer Kit (SDK) is installed in your database”. Its settings are a Partner Application Name and a Logout URL of the SSO Server.

The same page already says what to do next: “Oracle recommends using a modern Single Sign-On authentication scheme such as SAML Sign-In or Social Sign-In.” Deprecated features keep working for now, but an authentication change is not something to do the week a future release removes it.

SAML or Social Sign-In?

  • SAML Sign-In fits when your identity provider speaks SAML 2.0, which most enterprise SSO products do. Oracle’s own example issuer, https://login.example.com/oam/fed, is an Oracle Access Manager federation URL.
  • Social Sign-In supports “Google, Facebook, and other social networks and enterprise identity providers that support OpenID Connect or OAuth2 standards”. You choose a credential store with the client ID and secret, an authentication provider such as OpenID Connect with its discovery URL, and the scopes to request.

If your provider supports both, pick the one your identity team already runs for other applications. Fewer special cases, fewer surprises.

How SAML Sign-In flows

Sequence diagram with the browser, APEX on ORDS and the identity provider. The browser opens the app without a session, APEX redirects it to the identity provider's sign-in URL with an authentication request, the user signs in, the SAML response is posted through the browser to apex_authentication.saml_callback, which ORDS must allow from the identity provider's origin, APEX checks that both response and assertion are signed and takes the username from NameID or the username attribute, then starts the session
The browser carries every message. Schematic flow.

Configuring it, layer by layer

SAML in APEX is configured at the instance first, then used by applications.

Prerequisite. “SAML support requires Oracle Database 19c (Database Release Update 19.9.0.0.0 or newer) or Oracle AI Database 26ai.” Otherwise the scheme type does not display.

Instance. In Administration Services, Manage Instance > Security, under Development Environment Authentication Schemes, edit SAML:

  • Enable SAML for Applications, so workspace applications can use it.
  • APEX attributes: Username Attribute (by default APEX uses the assertion subject’s NameID), NameID Format (default urn:oasis:names:tc:SAML:2.0:nameid-format:persistent), Issuer (defaults to the callback URL, for example https://apex.example.com/ords/apex_authentication.saml_callback), certificate and private key, with alternatives for rotation.
  • Identity provider attributes: Issuer, Signing Certificate, Sign-In URL and Sign-Out URL from the provider’s metadata.

ORDS. “The SAML authentication end user flow requires Oracle REST Data Services (ORDS) to permit cross-origin requests from your Identity Provider.” Set security.externalSessionTrustedOrigins to include it.

Identity provider. “Oracle APEX requires the Identity Provider to digitally sign both the SAML Assertion and SAML Response. It is common for Identity Providers to only sign the SAML Assertion by default.” If only the assertion is signed, APEX rejects the payload with the “Invalid value for parameter” error.

Application. In Shared Components > Authentication Schemes, create a scheme from the gallery with type SAML Sign In, set Use SAML Attributes of to Instance, and decide on Convert Username To Upper Case.

Five configuration layers. Identity provider: register the APEX callback URL and issuer, sign both assertion and response. ORDS: security.externalSessionTrustedOrigins includes the identity provider's origin. APEX instance: Enable SAML for Applications, APEX certificate and key, identity provider issuer, certificate and sign-in URL, username attribute. Application: scheme type SAML Sign In using the instance's SAML attributes, then Make Current Scheme. Database: Oracle Database 19c RU 19.9 or newer, or 26ai
Most failed first logins come from the top two layers.

A safe switch-over plan

  1. Find every app on the old scheme. Check Shared Components > Authentication Schemes in each application, and note which scheme is current.
  2. Write down today’s usernames. Look at what APP_USER contains now, its case included. Authorization schemes, ACL assignments and audit columns depend on it.
  3. Set up SAML once per instance, with the identity team, in a non-production instance first.
  4. Map the username deliberately. Pick the Username Attribute or NameID that reproduces today’s usernames, and set the upper case option to match.
  5. Add the new scheme next to the old one and make it current in a test copy. Test login, logout, session timeout and every authorization scheme.
  6. Switch production in a planned window, with the old scheme still defined until the new one has run cleanly for a while.

Authentication changes on hosted instances are something we plan with customers on nwavecloud Cloud Hosting. See the plans page.

A short checklist

  • Apps on the Oracle AS Single Sign-On scheme listed
  • Current usernames, including case, documented
  • Database version meets the SAML prerequisite
  • Instance SAML configured and enabled for applications
  • Identity provider signs both Assertion and Response
  • ORDS security.externalSessionTrustedOrigins includes the identity provider
  • New scheme tested in a copy before Make Current in production

Bottom line

The old scheme needed a partner registration and a 9iAS-era SDK. SAML needs five layers configured once and a careful username mapping. Do it while the old scheme still works, not after it is gone.

FAQ

Is the Oracle AS Single Sign-On scheme removed in APEX 26.2?

No. It is deprecated in 26.2 and will be removed in a future release. Existing apps keep working for now.

What does Oracle recommend instead?

SAML Sign-In or Social Sign-In.

Why does APEX reject my SAML login with “Invalid value for parameter”?

The usual cause is an identity provider that signs only the SAML Assertion. APEX requires both the Assertion and the Response to be signed.

Where is SAML configured?

At the instance, in Administration Services under Manage Instance > Security, then in each application with a SAML Sign In authentication scheme.

What database version does SAML need?

Oracle Database 19c with Release Update 19.9 or newer, or Oracle AI Database 26ai.

Sources