Commit graph

26 commits

Author SHA1 Message Date
Alexis Gousseau
1aaadb88d0
fix: 🚨 resolve phpcs errors 2025-09-08 14:59:53 +02:00
Alexis Gousseau
da8074c5a4
fix: 🐛 reorder function parameters to avoid PHP 8.0+ optional parameter warning 2025-08-07 17:41:07 +02:00
noah.lancien
b472ab94d8 chore: remove files related to old crm migrations 2025-02-03 16:25:07 +00:00
Alexis Gousseau
303834bbca
Crm V4
- Make all tests pass Client (V4),CRMV2,CRMV4
- Simplify client submodule path
- Move App_url to .env.testing
2023-10-06 16:37:29 +02:00
Alexis Gousseau
764d0b2043
bump laravel 10 - issue Closes #19 2023-10-06 16:33:22 +02:00
Jérémy Munsch
b34c06a32f
Closes #5 Remove kwaadpepper Handler and add sentry 2023-07-06 10:52:02 +02:00
Jérémy Munsch
b65ad8c19e
Correction typages 2023-06-30 14:59:07 +02:00
Jérémy Munsch
d930a9e13c
Fix handler inconsistence 2023-06-30 14:59:06 +02:00
81aabdab72
Version 3.0.0
This removes api authentification with token in favor of signature method.
Refactorize code and clean up. It add more unit test plus code coverage
in test/converage.

- Added config.api.timestampTimeout
- Added Helper::signRequest This calculates the request signature
- Added more unit tests and extend code coverage.
- Added rate limiter for web routes
- Added RemoveSpaces Sanitizer on api requests
- Added stress test suite
- Changed AuthServiceProvider api-token to api-hmac
- Changed CustomerSeeder to have at least of customer activated (for unit tests)
- Changed used transation for saveing multiple models
- Changed, in ServiceController generateApiToken to generateServicePassword
- Changed, timestamp has to be send in request with a DateTime format, it also has to a UTC  value
- Composer added brianium/paratest
- Composer update
- Fixed case where removing single optin could be the wrong one (not for the good service)
- Fixed customer delete
- Fixed customer would not be resolved by brand.
- Fixed Really check that request is json checking body content, preventing sending malformed requests
- Remove ApiError::needAuth
- Removed api_token
- Removed ApiController::authenticate
- Removed config.api.tokenTimeout
- Removed Header check or usage because of HAProxy doing weird stuff
- Removed lock files from gitignore
- Removed memcached dependency
- Removed unused questions resources api routes
- Removed workspace file

Migrations
- Added unique index on services.bearer_token
- Changed customer_id on customer_answer is nullable
- Changed services.bearer_pwd length to 312 (the size of the token)
- Dropped services.api_token and service.api_token_date
2022-01-06 12:11:05 +01:00
Jérémy Munsch
2636e6b29d
Remove report method from handler and add RedirectTo::class to $dontReport exception 2021-10-26 09:17:02 +02:00
Jérémy Munsch
91bb88d26d composer require kwaadpepper/exception-handler 2021-09-15 10:10:37 +02:00
Jérémy Munsch
dd754cf6f9 Change http auth code to 401 in Exception handler 2021-08-19 12:25:00 +02:00
Jérémy Munsch
899140445e Add AuthorizationException handling 2021-08-12 08:56:35 +02:00
Jérémy Munsch
46a47e822d Some php doc 2021-08-09 08:55:39 +02:00
Jérémy Munsch
e6e8b94409 phpcs fix 2021-08-06 16:12:41 +02:00
Jérémy Munsch
dbf910223d add missing validation exception message on enum 2021-08-06 09:46:11 +02:00
Jérémy Munsch
6131b1a171 - working testing env
- use php artisan serve to run test + autokill
- autodebug if envirronement is testing
2021-08-05 15:00:28 +02:00
Jérémy Munsch
6b56929222 Api error and Api response fix to prevent imbricate ApiV2 Responses 2021-08-04 17:15:06 +02:00
Jérémy Munsch
00639792c4 - Fix Handler reponse coherence with api response
- Add ApiErrorException to the client
2021-08-04 15:07:25 +02:00
Jérémy Munsch
d62e3a18e1 Add throttle handle 2021-08-04 09:33:28 +02:00
Jérémy Munsch
873d57d8c1 Exception handler 2021-08-02 19:06:01 +02:00
Jérémy Munsch
19e1a022a2 mise à plat, renomage v1 et v2 en V1 et V2 2021-07-28 14:18:47 +02:00
Jérémy Munsch
6324606e44 Merge branch 'develop' into v2 2021-07-22 14:44:54 +02:00
Jérémy Munsch
e7e1a98695 CRM Migrate from old CRM (Le Gaulois) 2021-04-19 10:51:27 +02:00
Jérémy Munsch
6987501a98 CRM API V2 2021-03-27 08:29:31 +01:00
Romain Bonhomme
328e38ce38 Init 2020-12-01 17:02:10 +01:00