Skip to content

readOnly apps and users: Missing guide or bug ? #798

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

Closed
3 tasks done
ctrongminh opened this issue Oct 30, 2017 · 1 comment
Closed
3 tasks done

readOnly apps and users: Missing guide or bug ? #798

ctrongminh opened this issue Oct 30, 2017 · 1 comment

Comments

@ctrongminh
Copy link
Contributor

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

  • You're running version =1.1.2 of Parse Dashboard.

  • You're running version =2.6.5 of Parse Server.

  • You've searched through existing issues. Chances are that your issue has been reported or resolved before.

Environment Setup

Steps to reproduce

Logs/Trace

Note: If you get a browser JS error please run npm run dev. This will provide source maps and a much more useful stack trace.

I found two guideline issues when following the guide for new feature readonly users:

  1. I followed the https://github.com/parse-community/parse-dashboard#makings-users-read-only but the error occurs in the parse-dashboard container.
"users": [
     {
       "user":"user1",
       "pass":"pass1",
       **"readOnly": true,**
       "apps": [{"appId": "myAppId1"}, {"appId": "myAppId2"}]
Error: You need to provide a readOnlyMasterKey to use read-only features.
    at /src/Parse-Dashboard/app.js:111:19
    at Array.map (native)
    at /src/Parse-Dashboard/app.js:108:39

After logging in to the parse-dashboard, it says server error as image below
server_error

After I specify the readOnlyMasterKey (same readOnlyMasterKey as when we start parse-server) in the "apps": [{"...": "..."}], the error is gone. I think we need to update the guide line.

  1. I followed https://github.com/parse-community/parse-dashboard#making-users-apps-readonly, but after logging in the the parse-dashboard I receive message: You dont have any apps.
"users": [
     {
       "user":"user1",
       "pass":"pass1",
       "apps": [{"appId": "myAppId1", **"readOnly": true**}, {"appId": "myAppId2"}]
     } ]

parse-dashboard-no-apps

After I specify the readOnlyMasterKey (same readOnlyMasterKey as when we start parse-server) in the "apps": [{"...": "..."}], the error is gone. I think we need to update the guide line

So in both cases, I think we need to update the guideline to include the readOnlyMasterKey in the "apps": [{"...": "..."}]. Do I understand correctly ?

Thanks

@flovilmart
Copy link
Contributor

Closing as documented in the README ;)

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