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

Client Keys aren't enforced even when defined #1733

Closed
3 tasks done
natanrolnik opened this issue May 9, 2016 · 2 comments
Closed
3 tasks done

Client Keys aren't enforced even when defined #1733

natanrolnik opened this issue May 9, 2016 · 2 comments

Comments

@natanrolnik
Copy link
Contributor

natanrolnik commented May 9, 2016

Environment Setup

  • Server: 2.2.7 on Heroku

Steps to reproduce

  • Setup a Parse Server with applicationId, masterKey, and at least one of the client keys (rest api, dot net, or client key). In this case, set the restAPIKey.
  • Issue a request with the headers X-Parse-Application-Id and X-Parse-Rest-API-Key.
  • See that the request succeeded
  • Now, replace the original value used on X-Parse-Rest-API-Key with Bananas

The ReadMe states that:

Setting any of these keys will require all requests to provide one of the configured keys.

However, if you try to reproduce it with the steps above, you will see that the keys aren't really enforced, even when a few of them are being defined when Parse Server is initialized. When running the same request with the same headers, but pointing to api.parse.com/1, the result is {"error": "unauthorized"}.

@drew-gross
Copy link
Contributor

Closing to avoid duplicating discussion as we are discussing stuff in #1789.

If you have a good use case for client keys and think we should keep them, please post it there.

@natanrolnik
Copy link
Contributor Author

I initially posted here, but then I realized I should post on #1789 😁

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

No branches or pull requests

2 participants