root-systems / cobuy

:seedling: :package: :stew: :family: Helping people buy good food at good prices, together.
GNU Affero General Public License v3.0
25 stars 4 forks source link

Chore/harden services #492

Closed iainkirkpatrick closed 6 years ago

iainkirkpatrick commented 6 years ago

Adds auth hook to all relevant services, plus more thought-out hooks + tests to services:

None of the tests yet simulate an authorised client connecting to the server and calling services - i haven't yet got a test client + server combo communicating properly. so at the moment any tests which need params which include { provider: 'rest' } won't run unless the all: authenticate('jwt') is turned off first.

closes #460