SalesFrontendBundle
SalesFrontendBundle provides an integration with the headless Field Sales application, specifically it:
Enables the Back-Office Web API during the OroCommerce application installation/upgrade via
\Oro\Bundle\SalesFrontendBundle\Migrations\Data\ORM\EnableBackofficeApi
data migration.Generates the private and public RSA keys required by the OAuth2 server. The keys are generated automatically (if they do not yet exist) via composer script @oauth-server-generate-keys defined in the
scripts
section of thecomposer.json
of this package. To generate the keys manually, see Generating public and private keys.Creates OAuth2 applications with grant type
Authorization Code
required for communication between the Field Sales and OroCommerce applications 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.Provides the login and login-related pages to be embedded into the Field Sales application.
Provides the endpoints to manage a user-session lifecycle in the Field Sales application.
Configures CORS and CSP for the Back-Office Web API, the Field Sales application login, login-related pages and endpoints.
For more information on the setup, see OroCommerce Field Sales App Setup and Connection.