-
Notifications
You must be signed in to change notification settings - Fork 46
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
Session login, not fully working yet #36
base: master
Are you sure you want to change the base?
Conversation
Hi Luke, I'm interested in this too, although I don't know much about the megasdk either. |
I'm very happy that someone else is interested in this feature, so thank you for you contribute, I very appreciate it! I have some clues about the place where the master key is retrieved, but I can't understand the process related to encryption and decryption implemented in the SDK.
So 8 requests are made, each one containing one of the lines above. I hope this could be helpful to someone. |
My feeling exactly when looking at their C++ code!
I'm not clear on what this is for. Where do you get a session key from? |
I'm very happy that you answered to that PR!
I dont' feel alone anymore. 😆
So, imagine that an application needs to have some kind of persistence for some reason (for example for uploading content without asking for user credentials each time). It is super useful to have a session key, which can be retrieved when logged in a session, so that the user has to type credentials the first time only. In any subsequent access to the account, the user has nothing to do, because the application will login using the session key previously retrieved. |
the session key is like use token, u can revoke tho and so on.
|
No, the actual thing in this PR is to use the authentication with session token. At the moment, I have implemented the authentication, but when you try to get your files it will be impossible, because no decryption key is retrieved (as opposed to what happens with email+psw[+OTP] authentication). |
In the past four days I've lost my mind trying to figure out Mega SDK's internals.
I managed to write a new function to login using session key. It works fine, but it's not complete yet, because no master key is retrieved in session login, so node attributes can't be decrypted.
As I said in #35 , I would like some help to solve this issue.
Hope someone will collaborate.