Important

You are browsing upcoming documentation for version 6.1 of OroCommerce, scheduled for release in 2025. Read the documentation for version 6.0 (the latest LTS version) to get up-to-date information.

See our Release Process documentation for more information on the currently supported and upcoming releases.

SalesFrontendBundle 

SalesFrontendBundle provides an integration with the headless Sales Frontend application, specifically it:

  1. Enables the Back-Office Web API during the OroCommerce application installation/upgrade via \Oro\Bundle\SalesFrontendBundle\Migrations\Data\ORM\EnableBackofficeApi data migration.

  2. Generates the private and public RSA keys required by the OAuth2 server. The keys are generated automatically (if they do not exist yet) via composer script @oauth-server-generate-keys defined in the scripts section of the composer.json of this package. To generate the keys manually, see Generating public and private keys for details.

  3. Creates OAuth2 applications with grant type Authorization Code required for communication between the Sales Frontend application and OroCommerce application via the Back-Office Web API using the OAuth2 authentication method. OAuth2 applications are created automatically for each organization by data migration \Oro\Bundle\SalesFrontendBundle\Migrations\Data\ORM\LoadSalesFrontendOAuth2Clients. The creation of a new organization is handled by the \Oro\Bundle\SalesFrontendBundle\EventListener\Doctrine\SalesFrontendOAuth2ClientListener doctrine listener.

  4. Provides the login and login-related pages to be embedded into the Sales Frontend application.

  5. Provides the endpoints to manage a user-session lifecycle in the Sales Frontend application.

  6. Configures CORS and CSP for the Back-Office Web API, the Sales Frontend login, login-related pages and endpoints.