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
After logging in user server side through cloud code ParseUser cannot be set using returned User object #700
Comments
Thanks for opening this issue!
|
I have also tried the following, setting ParseUser explicitly with all the parts of the payload.
I get an error traced back to ParseCoreData().sessionId being null |
Try calling this line of code after setting the user data. ParseCoreData().setSessionId(user['sessionToken']!); The sessionToken is being configured only in the signin and signup methods of the SDK. You created a custom process, you need to set it manually. |
That did it @RodrigoSMarques, thank you very much! I appreciate the expertise! And yes, I am creating my own system. I am taking security a step further. For certain threat actors HTTPS should no longer be trusted, therefore I will be locking down all CLPs and creating a sort of sub-https hybrid encryption system for all cloud code calls including login and logout. This is the last piece of the puzzle to enable this secure system. Thank you |
Issue Description
After logging in on the server side with credentials, I cannot set the ParseUser that was used to make the cloud call, as a logged in user with the returned User object.
Steps to reproduce
I will be showing two different ways I have attempted this.
Actual Outcome
ATTEMPT 1
ATTEMPT 2
Expected Outcome
I expected to be able to assign return object from Login payload as ParseUser or to have it happen automatically as in ATTEMPT 1 above, neither work.
Environment
Parse Flutter SDK
1.0.1
MacOS Big Sur 11.6.2
Server
4.5.0
The text was updated successfully, but these errors were encountered: