Important
We are updating the images for OroCommerce version 6.1 to align with the latest changes in the back-office design. During this transition, some images may still show older versions. Thank you for your patience as we work to update all visuals to reflect these changes.
CLI Commands (OAuth2ServerBundle)
oro:oauth-server:generate-keys
Generates private and public RSA keys required for proper work of the OAuth2 server. The generated keys are put into the project directory as var/oauth_private.key and var/oauth_public.key, unless other paths are specified in the bundle configuration.
Warning
In order to ensure the generated keys could be used locally - they have permissions wider than needed - 0644. For production deployment, ensure that only the web server has read and write permissions for the private key.
php bin/console oro:oauth-server:generate-keys
Note
You can customize the permissions being assigned to RSA keys via setPrivateKeyPermission
setter in \Oro\Bundle\OAuth2ServerBundle\Command\GenerateKeysCommand
.
oro:cron:oauth-server:cleanup
Removes outdated OAuth 2.0 access tokens, refresh tokens and auth codes. It also removes OAuth 2.0 applications that belong to removed users. Runs daily at midnight via cron.
php bin/console oro:cron:oauth-server:cleanup
oro:cron:oauth-server:check-keys-permissions
Checks if OAuth 2.0 private key permissions are secure and creates an alert notification <dev-integrations-notification-alerts> if private key can be accessed by someone except an owner. Runs daily at midnight via cron.
php bin/console oro:cron:oauth-server:check-keys-permissions