Commit graph

28 commits

Author SHA1 Message Date
Dillon-Brown
e94bc6f6d5 Upgrade symfony/orm-pack composer dependency for PHP 8
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:42 +01:00
Dillon-Brown
7044598f34 Move all legacy handlers to backend
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:41 +01:00
Dillon-Brown
62174cf0df Composer Update
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:40 +01:00
Dillon-Brown
12e6dc17d6 Implement SilentInstall commands
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:39 +01:00
Jack Anderson
3a879944e4 Update Composer 2021-03-30 19:22:38 +01:00
Dillon-Brown
f977398af6 Update Composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:37 +01:00
Dillon-Brown
58a2d236e5 Update Composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:37 +01:00
Dillon-Brown
952d635ff9 Update Composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:34 +01:00
Dillon-Brown
a95f957692 Update Composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:33 +01:00
Dillon-Brown
7d0ffa7422 Remove Symfony HTTP composer requirements
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:33 +01:00
Dillon-Brown
e9623d865b Add symfony require to composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:33 +01:00
Dillon-Brown
09e1c684ff Update Composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:32 +01:00
Dillon-Brown
b6ee5ab8fe Update Composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:32 +01:00
Dillon-Brown
c44c3ae8e5 Add Symfony/Yaml dependency
- This enables the ability to use composer without dev packages on Symfony prod

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:32 +01:00
Dillon-Brown
0cce4ee2a9 Lock codeception composer dev requirement
- This is required until we update our test code

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:32 +01:00
Dillon-Brown
3b0fd86837 Update composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Dillon-Brown
8235e46b2d Update Composer
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Dillon-Brown
6734f26d98 Implement CSRF protection
- Remove outdated CSRF package
- Implement core CSRF protection

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00
Clemente Raposo
6c3e266b5d Add legacy api re-direction
- Listen to legacy api calls on the LegacyRedirectListener
- Add LegacyApiRedirectHandler to re-direct to legacy endpoint
-- Using 307 re-direction response to support post re-direction
-- Using api_paths.yaml with the configuration with paths to check

- Setup API tests using codeception
-- Add helper methods to login in v4 and v8 API
- Add Api test to create account using v4 api
- Add Api test to create account using v8 api
- Add unit test for LegacyApiRedirectHandler
2021-03-30 19:21:34 +01:00
Dillon-Brown
bc115670ba Add legacy user provider
- This changes the Symfony User entity to fetch the user from the legacy users table

Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:21:34 +01:00
Clemente Raposo
59c3efd08c Add Suite 8 LogoutListener
- Add LegacySessionLogoutHandler
-- Logout Legacy Suite session when Suite 8 is logged out
-- Configure handler to decorate SessionLogoutHandler
- Add logout to Authentication legacy handler
- Add AspectMock lib
- Add unit tests for LegacySessionLogoutHandler
- Rename unit test folders to be consistent with src.
-- Use the same pattern used in Suite 7
2021-03-30 19:21:33 +01:00
Dillon-Brown
287ed2fb15 Add Angular CSRF protection 2021-03-30 19:21:31 +01:00
Dillon-Brown
9bff8530c6 Add Suite-8 user authentication 2021-03-30 19:21:31 +01:00
Clemente Raposo
b809e5c85b Add ClassicView routing
Redirect Suite7 requests to Suite8 ClassicView routes for valid actions
- Use Symfony kernel events
- Use Symfony service configuration and DI for module mapping

Add legacy redirection tests
- Add acceptance test support
-- Add config helper
- Fix issue when running `codcept run`
-- functional tests missing
- Add functional tests for legacy routing
- Add unit tests for legacy routing
2021-03-30 19:21:31 +01:00
Dillon-Brown
8cf555f4ee Update and audit existing project dependencies for Symfony/Flex.
- Converted all non-flex bundles with available bundles into Symfony/Flex.
- Updated namespaces to more closely match Symfony.
- Removed unnecessary dependencies and recipes.
- Executed Symfony/Flex recipes to create default configs.
- Improved composer.json scripts.
2021-03-30 19:21:31 +01:00
Dillon-Brown
a787d0d82f Add codeception testing framework
This implements the basic structure that will be used for future unit, functional and acceptance tests.
2021-03-30 19:21:30 +01:00
Dillon-Brown
587a79613e Add API Platform Framework with Symfony/Flex
This implements the basic structure that will be used for the API and core application.
2021-03-30 19:21:30 +01:00
Dillon-Brown
c895877b7e SuiteCRM 8 initial commit 2021-03-30 19:12:01 +01:00