yongjhih/docker-parse-server

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

Open

#54 opened on Jul 15, 2016

View on GitHub
 (1 comment) (0 reactions) (0 assignees)JavaScript (161 forks)github user discovery
help wanted

Repository metrics

Stars
 (474 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide