olin-build / ABE

Amorphous Blob of Events
https://abe.olin.build/
GNU Affero General Public License v3.0
7 stars 1 forks source link

A client should be able to find out whether it's authenticated #214

Closed osteele closed 6 years ago

osteele commented 6 years ago

A client should be able to find out whether it's displaying all or only some events; whether it can modify the events; and whether it should display a “sign in” affordance.

These could be separate flags (this is probably more future-proof), or a single flag. The data could be transmitted as the result of a new API call; extra content that is the /events (and other?) JSON response includes; or HTTP response headers that are returned with every API call.

The intent is to enable olinlibrary/abe-web#92, olinlibrary/abe-web#175, and olinlibrary/abe-web#179.

ABE Auth Design contains a couple of proposals for this. Assume we use proposal A. Then the implementation plan would look something like this: