nilportugues / php-json-api

JSON API transformer outputting valid (PSR-7) API Responses.
http://nilportugues.com
MIT License
71 stars 35 forks source link

Authentication and authorizations #98

Open nebur81 opened 5 years ago

nebur81 commented 5 years ago

I have not seen that there is Authentication and authorizations for CRUD operations, do you plan to implement it?

samizdam commented 5 years ago

Hm... Specification doesn't include anything about authentication or authorizations. See https://jsonapi.org/

Goal of jsonapi is make uniform of data serialization and client-server communication, your issue out of scope.

Your should implement auth logic in application by yourself. For example: send JWT with request headers and handle it with middleware before mapping.