yongjhih / docker-parse-server

Provide docker images and docker stack for parse-server npm versions and latest commit
https://hub.docker.com/r/yongjhih/parse-server/
Apache License 2.0
475 stars 166 forks source link

Unauthorized error for cloud code requests which should be called with master key #54

Open egorvas opened 8 years ago

egorvas commented 8 years ago

Hi, I have a problem with calling my cloud code function from REST API. I trying to do something like this:

curl -X POST -H "X-Parse-Application-Id: MY_APP_NAME" \
>      -H "X-Parse-Master-Key: MY_MASTER_KEY" \
>      -H "Content-Type: application/json" \
>      https://MY_DOMAIN/parse/functions/push

And I sure that APP_NAME MASTER_KEY and DOMAIN are correct.

So for this request parse send me follow response:

{
  "code": 141,
  "error": {
    "message": "unauthorized: master key is required"
  }
}

So seems that some problems on auth functionality

katopz commented 7 years ago

@egorvas I think it's not a good idea to push from client? Maybe you can just let server do it job?