Commit graph

18 commits

Author SHA1 Message Date
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