Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flesh out partial syncing / authZ restrictions #29

Open
0xgeert opened this issue Jun 5, 2014 · 4 comments
Open

flesh out partial syncing / authZ restrictions #29

0xgeert opened this issue Jun 5, 2014 · 4 comments

Comments

@0xgeert
Copy link
Owner

0xgeert commented Jun 5, 2014

How to deal with partial sync / authZ restrictions?

Is it ok to have policies in front of the common REST-endpoints as to filter/restrict the output? Is this ok in light of http caching?

Idea would be to do everything based on json webtokens passed along in a cookie for authenticated users. Or: (probably better) have the client fetch the cookie and pass the json webtoken as some sort of auth header, which enables the sails backend to behave as a stateless Resource server.

(although it's a matter of opinion I guess why cookies would count as stateful and headers as stateless).

relates to #39 which enables post process filtering on field level

@0xgeert
Copy link
Owner Author

0xgeert commented Jun 6, 2014

@0xgeert
Copy link
Owner Author

0xgeert commented Jun 6, 2014

Condensed API guidelines:
https://github.com/gebrits/flux-test/wiki/Api-best-practices

@0xgeert
Copy link
Owner Author

0xgeert commented Jun 6, 2014

clientside

  • url hash id to pass userid or admin for admin
  • flexible method for encoding authorization header. Used for all ajax and socket calls. For now the above urlhash id is passed as value for the authorization

serverside

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant