-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Adds ability to disable anonymous users #440
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
Adds ability to disable anonymous users #440
Conversation
This is great! I didn't have the exact knowledge where to put the checks. My only comment is that this could break a lot of current installations and it might be best if it was "disableAnonymousUsers" so existing server installations wouldn't all of a sudden stop working for people. |
@nitrag it defaults to true to prevent any breaking. As for why defaulting to true, it's because undefined, null and false work well with |
Ah, me dumb. Thanks for this! On Mon, Feb 15, 2016 at 11:15 PM, Florent Vilmart [email protected]
|
Thanks! Looks awesome. |
Adds ability to disable anonymous users
I just experienced an issue where the session token was bad (pre-revocable) and my app was not responding to a cloud function. Turns out request.user was null. Does your PR request include every single API hit to the database? Or just creating/update? Shouldn't we be throwing an error (Invalid login) or something. I need to have my users be forced back to the login screen. I'm too amateur to tell if Parse is validating the user's session or not each time he accesses the app. Sigh... |
That seems unrelated to that PR as this only affects the ability to disable anonymous users. Can you open an issue with the proper description of your bug? |
Okay so there is an issue related to anonymous access the request.user=null was a separate issue. I don't believe every request that comes into the server is being session validated. For instance. I am able to make a curl request with a purposely made up session token and it happily returns the data.
|
Can you please open an issue then as it's unrelated with the purpose of that PR. thanks! |
@flovilmart I'm setting enableAnonymousUsers to true but ParseUser.getCurrentUser() is still null. Is that normal? My idea is to begin working with the current user immediately when the application starts, not requiring the user to login/signup at first. |
You have to enable it on the client, it's enabled by default on the server |
Ok, got it. Thanks |
Proposed fix for #327