parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Master-key in push via rest requests?

Open goggelj opened this issue 10 years ago • 1 comments

I noticed that now for push I need to use/have the master key in my request. This was not necessary with Parse.com (https://parse.com/docs/rest/guide#push-notifications-sending-pushes).

This is also inconsistent with the rest of the REST api (https://parse.com/docs/rest/guide).

I stumbled upon this when testing my python REST code with my parse-server (running on Heroku).

Except for Push I did not need to change my code to use Master Key.

Is there a reason for this?

running latest parse-server-example (which uses parse-server 2.2.2)

For implementation related questions or technical support, please refer to the Stack Overflow and Server Fault communities.

Make sure these boxes are checked before submitting your issue -- thanks for reporting issues back to Parse Server!

Environment Setup

Steps to reproduce

Logs/Trace

goggelj avatar Mar 30 '16 00:03 goggelj

Parse.com had various levels of authorization... The REST API key could send Push, and if client push was enabled, so could other keys... With Parse Server I felt we had the ability to revisit some decisions, and this was one area which could be simplified. Client keys aren't necessary, and you're either the master key or you're not. Push is a channel you want to strictly control, and it makes sense to keep it behind the master key.

gfosco avatar Mar 30 '16 17:03 gfosco