Skip to content
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

Cannot login in 1.X versions of storage explorer #583

Closed
JoranDox opened this issue Aug 16, 2018 · 6 comments
Closed

Cannot login in 1.X versions of storage explorer #583

JoranDox opened this issue Aug 16, 2018 · 6 comments
Labels
💻 linux Related to Linux platforms ⚙️ sign-in Related to sign-in ✅ merged A fix for this issue has been merged
Milestone

Comments

@JoranDox
Copy link

Storage Explorer Version: 1.4
Platform/OS Version: apparently I can't copy from the about dialog any more either (also worked in 0.9) so here it is:
image

Architecture: see above
Regression From: 0.9.6, broken since any later updates (tried 1.0, 1.1, 1.2, 1.3, 1.4, worked on 0.9)

Steps to Reproduce:

  1. open storage explorer
  2. get the prompt to log in in some way "Connect to Azure Storage"
  3. "add an azure account" -> [sign in]
  4. fill in my email (redirecting me to my company's login)
  5. fill in my password
  6. get the authenticator pop-up on my phone and press approve

Expected Experience:

I shortly see "Waiting for authentication..." end then I get access to the subscriptions connected to my account, and the storage accounts and blobs under those subscriptions (this is also what happens when I need to re-enter my password in 0.9).

Actual Experience:

It keeps spinning on "Waiting for authentication...", presumably until some timeout happens, after which I go back to an empty storage explorer.

@JoranDox
Copy link
Author

I've checked issues #579 and #578 but they don't seem to be real duplicates, and I'm not behind a proxy.
It seems to be a duplicate from #434 but unlike there I actually see an error in the console after I press F12:
error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt
error @ Debug.js:39
Debug.js:39 Unexpected end of JSON input
error @ Debug.js:39

and in the waiting for authentication box after pressing F12:
Uncaught (in promise) Object (followed by what I believe is a standard empty js object)

@JoranDox
Copy link
Author

Running it from console shows no actual errors, same

...
Received message 'dialog-execute-operation'
Received message 'did-execute-operation'
Received message 'dialog-execute-operation'
Received message 'did-execute-operation'
Received message 'did-get-dialog-result'
Received message 'closed'

as in 434.

@mcqueene
Copy link

image
I have seen the same issue since Aug 15 2018. Hitting F12 I also see the "Unexpected end of JSON input" error.

@craxal
Copy link
Contributor

craxal commented Aug 17, 2018

The key here is the "bad decrypt" error. This is related to #535. We encountered the problem when generating new encryption keys when one isn't found. I experienced this exact same problem when trying to sign in. We have a fix for this coming very soon.

@JoranDox, @mcqueene, if you like, can you follow the suggestions in #535 to see if the "Microsoft_StorageExplorer" key is present?

@craxal craxal closed this as completed Aug 17, 2018
@craxal craxal added ✅ merged A fix for this issue has been merged ⚙️ sign-in Related to sign-in 💻 linux Related to Linux platforms labels Aug 17, 2018
@MRayermannMSFT MRayermannMSFT added this to the 1.4.1 milestone Aug 17, 2018
@craxal
Copy link
Contributor

craxal commented Sep 10, 2018

@JoranDox, you said you're still having issues. Are you still getting the "bad decrypt" error? Have you verified that you have a "Microsoft_StorageExplorer" key in your credentials store?

@JoranDox
Copy link
Author

JoranDox commented Sep 11, 2018

in the pop-up: still the uncaught (in promise):
image

in the main window: still the bad decrypt:
image

I have the key:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 linux Related to Linux platforms ⚙️ sign-in Related to sign-in ✅ merged A fix for this issue has been merged
Projects
None yet
Development

No branches or pull requests

4 participants