-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Disable anonymous API requests #327
Comments
Currently that is not available in parse-server. Want to submit a PR? |
I would be happy to take a stab at it. Someone needs to point me in the right direction though...haven't worked on a Node app before. |
Sure. You can take a look at |
I'm not understanding what you mean by "creating an anonymous user". So when a API request comes in, if there is no authentication info it tries to create an anonymous user? Where is that line of code? I really don't understand the handleAnonymousAuthData of RestWrite. Where does "this.data.authData.anonymous" come from? What is an anonymous provider? I'm also inferring based on your description that every API request requires a user object before API requests can be made and RestWrite occurs before RestQuery? |
@steven-supersolid since you just were messing around with PR #341 and anonymous users, maybe you can help me determine where to throw an error for this. I'm not sure at exactly which point in RestWrite the user is determined to be anonymous. |
@drew-gross @nitrag I'll get a shot a this, adding enableAnonymousUser: false to the configuration. |
The Dashboard has a setting:
"Allow anonymous users".
How do we set this to false? I want to require that all API requests are from a logged in user (unless they are signing up or logging in).
The text was updated successfully, but these errors were encountered: