-
Notifications
You must be signed in to change notification settings - Fork 85
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
Redirect to localhost address when trying to add account using subscription option #4342
Comments
@MikaelPorttila what browser are you using? Did you try this at least more or once? |
@MRayermannMSFT |
@MikaelPorttila could something about your browser or something else be forcing HTTPS to be used always/no matter what? When we do sign-in with your browser, the sign-in page redirects to a localhost address/port that our auth library is listening on. HTTP has to be used for that local host address though. |
If you can't think of anything that would be causing this, then for now you can change to using integrated sign in. Please read this doc/section "Changing where sign in happens" on how to do that: https://docs.microsoft.com/en-us/azure/storage/common/storage-explorer-sign-in#changing-where-sign-in-happens |
Hi, Tried to turn off the HTTPS and shield for the localhost page but still got redirected to HTTPS by something, I just changed the default browser to Firefox, logged in and changed back to Brave again and this solved all my issues for now and I can continue my work. 👍 Thoughts: Lower/turn off security to allow sign in feels like poor practice, maybe the solution for this issue should be to solve the root issue of using HTTP, one of these days other vendors will take after Brave and redirect to HTTPS and HTTPSEverywhere (Popular Chromium extension) users are in theory also affected. You can close this issue unless you don't want to handle the case "What if HTTP wasn't an option". Thank you again for all the help! |
@MikaelPorttila awesome, glad to hear you are unblocked. I think MSAL (the auth library) is working on HTTPS support for the localhost redirect in the future, but I don't have a timeline on that. An alternative workaround for you in the future if you need to reauthenticate is to use the "Changing where sign in happens" setting I referenced above. I'll put this in our future milestone for now so we can track this scenario being supported/so others can find this issue. Thanks! |
I am also having this issue, with authenticating and re-authenticating. I accidentally created a duplicate ticket (4417). Switching to Integrated Sign-In has allowed me to authenticate. |
Experienced the same issue in Version 1.19.1 / Build: 20210425.1 |
I had the same issue and used the same workaround. Could this be related to HSTS? Options were renamed to Settings on my build |
Same issue with Chrome v92.0.4515.131. Just re-installed storage explorer (v1.20.1), same thing. Above work around works. |
Same problem here. Just switched to integrated sign-in and worked fine. |
I was able to work around this by going to chrome://net-internals/#hsts Delete domain security policies Entering 'localhost' and clicking delete |
Adding comments to both issue numbers in case someone searches it. Disabling following flag is the solution in MS Edge (tested in version 104) - edge://flags/#edge-automatic-https Cache needs to be cleared otherwise HSTS will report 'localhost' domain with flag dynamic_upgrade_mode: FORCE_HTTPS Alternative workaround is as mentioned previously, change Azure Storage sign-in with setting to Integrated Sign-in |
I had the same issue with current Edge browser 121.0.2277.98 (Official build). I couldn't find option to upgrade HTTP to HTTPS but in flags something mentioned.., However I just paste link into Firefox and it worked. But as SignorLuigi wrote I changed for integrated Sign-in and will see Also I found SO question with some solutions: |
Storage Explorer Version: 1.19.0
Build Number: 20210414.2
Platform/OS: Windows 10 LTSC
Architecture: x64
Regression From: 1.18.0
Bug Description
Got redirect to localhost:49158 when trying to add an account using the "Add an account..." button and then select Subscription.
I Selected med Azure account and then i got redirected to https://localhost:49310/?code=
Steps to Reproduce
This site can’t provide a secure connectionlocalhost sent an invalid response.
ERR_SSL_PROTOCOL_ERROR
Expected Experience
To have my account added to Azure Storage Explorer.
Actual Experience
An error page saying
"This site can’t provide a secure connectionlocalhost sent an invalid response.
ERR_SSL_PROTOCOL_ERROR"
Additional Context
I had multiple account setup before the update to 1.19.0, after the update I was logged out from one of the accounts and now i'm trying to add the account again.
The text was updated successfully, but these errors were encountered: