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

Query on _User removes authData in 2.2.7 Bug in #1498 #1568

Closed
steven-supersolid opened this issue Apr 20, 2016 · 1 comment
Closed

Query on _User removes authData in 2.2.7 Bug in #1498 #1568

steven-supersolid opened this issue Apr 20, 2016 · 1 comment

Comments

@steven-supersolid
Copy link
Contributor

#1498 causes authData to be removed even for authorised Users/master

Query:

curl -X GET \
-H "X-Parse-Application-Id: appId" \
-H "X-Parse-REST-API-Key: restAPIKey" \
-H "X-Parse-Session-Token: r:validSessionToken" \
-H "Content-Type: text/plain" \
https://localhost:1337/parse/users/ruw4yeT8oQ

Expected result (parse.com)

{
  "ACL": {
    "ruw4yeT8oQ": {
      "read": true,
      "write": true
    }
  },
  "authData": {
    "anonymous": {
      "id": "5b49ada2-4df5-4457-8ea4-21550cf07a96"
    }
  },
  "createdAt": "2016-04-19T18:24:11.360Z",
  "objectId": "ruw4yeT8oQ",
  "sessionToken": "r:validSessionToken",
  "updatedAt": "2016-04-19T18:24:38.988Z",
  "username": "NUKxhDCb0OhU2JkojqMyshVpg"
}

Actual result:

{
  "ACL": {
    "ruw4yeT8oQ": {
      "read": true,
      "write": true
    }
  },
  "objectId": "ruw4yeT8oQ",
  "username": "NUKxhDCb0OhU2JkojqMyshVpg",
  "createdAt": "2016-04-19T18:24:11.360Z",
  "updatedAt": "2016-04-19T18:24:38.988Z",
  "sessionToken": "r:validSessionToken"
}
@flovilmart
Copy link
Contributor

that's problematic indeed

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