Implementing Security and Authentication Improvements

Configuring OAuth and SAML Authentication Enhancements

Objective

After completing this lesson, you will be able to configure OAuth 2.0 and SAML authentication enhancements in SAP Commerce Cloud, including PKCE flow integration, PKCS12 support, token response customization, and login page routing

SAML SSO with Authorization Code + PKCE Flow

SAML Single Sign-On can now be integrated with the OAuth 2.0 Authorization Code + PKCE flow for SPA clients (e.g. Composable Storefront) without any frontend changes. Configure the SAML IdP in the standard way; the platform bridges SAML authentication into the PKCE flow transparently.

SAML SSO Support with Authorization Code Flow

PKCS12 Support for Trust Store and SAML SSO

You can now use PKCS12 files as the additional trust store format (additional.javax.net.ssl.trustStoreType property), and use PKCS12 keystores for SAML SSO certificate configuration. This eliminates the need to convert PKCS12 certificates to JKS format.

PKCS12 Support for Additional Trust Store

Configurable JWT Signing Algorithm (Local Environments)

In local environments you can now specify the JWT signing algorithm via a new property, giving you control over the cryptographic algorithm used to sign tokens during development and testing.

Configurable JWT Signing Algorithm in Local Environments

Extending Token Response with Custom Parameters

Custom token granters can now append additional parameters to the token response. Use the additionalParameters map to include custom fields into the OAuth token response for specific grant flows.

Extending Token Response with Additional Parameters in Custom Token Granters

Custom Login Page with Redirect URI Host Placeholder

A new {redirectUriHost} placeholder in OAuth client login page URIs enables dynamic construction of login page URLs from the authorization request's redirect URI. A single OAuth client configuration can now serve multiple storefronts, routing each user to the correct login page based on their entry point.

Support for Custom Login Page with Redirect URI Host Placeholder

Composable Storefront Default Authentication Flow

authorizationCodeFlowByDefault is enabled by default as of the March 2026 Composable Storefront update. The toggle to disable this flow will be removed in September 2027. If your implementation explicitly disables this flag, begin migration planning now.

Default Authentication Flow Update

Lesson Summary

  • SAML SSO can be integrated with the OAuth 2.0 Authorization Code + PKCE flow transparently for SPA clients.
  • PKCS12 files are now directly supported for trust stores and SAML SSO certificate configuration.
  • JWT signing algorithm is configurable in local environments; token responses can be extended with custom parameters.
  • A {redirectUriHost} placeholder enables a single OAuth client to route users to storefront-specific login pages.
  • Authorization Code flow is now the default in Composable Storefront — the disable toggle will be removed in September 2027.