Re: Modeling permissions with Hydra

Hi Ryan

I had similar concenrs with my implementations. In final version we decided 
to filter the API documentation to currently authenticated user's 
priviledges without exposing privilegdges themselves. This would mean that 
on each API documentation request an Authorization header was checked and 
depending on what given user could do we gave a trimmed API documentation. 
Still, if something goes wrong your server would return 401 Unauthorized.

I think similar approach could be taken with in-body hypermedia controls.

Best

Karol 

Received on Thursday, 29 October 2015 19:46:28 UTC