Title here
Summary here
Only Northwind members should create tasks. Add login and protect writes.
make:authmember.login$this->mustAuthenticate() in createActionphp pionia make:auth jwtFollow prompts to register JwtAuthentication in environment/settings.ini under [app_authentications].
php pionia make:service memberImplement a minimal loginAction that validates email/password and returns a token via security() helpers — see Security guide for a full DeskFlow example with team_members table.
Register 'member' => MemberService::class on MainSwitch.
At the top of createAction:
$this->mustAuthenticate();curl -s -X POST http://127.0.0.1:8000/api/v1/ \
-H "Content-Type: application/json" \
-d '{"service":"member","action":"login","email":"alex@northwind.studio","password":"secret"}'Create with token:
curl -s -X POST http://127.0.0.1:8000/api/v1/ \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{"service":"task","action":"create","title":"Client kickoff"}'Authorization: Bearer header.