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

'Fix' for auth crashing the ESP #125

Merged
merged 1 commit into from
Nov 24, 2017
Merged

Conversation

jeremypoulter
Copy link
Collaborator

I use the term fix very loosely. What this actually does is allow the StaticFileWebHandler to have the authentication separately configured, as with the other handlers, and then not configure authentication.

The effect of this is that only the dynamic content asks for authentication. This should be ok but the underlying bug in the new StaticFileWebHandler is still there.

Fixes #101

I use the term fix very loosely. What this actually does is allow the StaticFileWebHandler to have the authentication separately configured as with the other handlers and then not configure authentication.

The effect of this is that only the dynamic content asks for authentication. This should be ok but the underlying bug in the new StaticFileWebHandler is still there.
@glynhudson
Copy link
Contributor

Nice work, thanks for taking a look at this.

Just tested and it seems to require the username and password to be entered twice. Log in box re-appears for a 2nd time after submitted. Same behaviour on Chrome desktop and android Chrome and Firefox. I double checked I did enter the login details correct the first time!

However, once the login as been entered for the 2nd time it does login every time without hanging which is an improvement.

@jeremypoulter
Copy link
Collaborator Author

The double auth is probably a side effect of only using the auth on the dynamic pages. Which browser are you using? Are you able to get a Wireshark capture?

FYI I tried in Chrome 62.0.3202.94 and only got asked once... Ah are you using the openevse.local address? There is code to swap to IP address to load faster, I think this will be picked up as a separate auth.

@glynhudson
Copy link
Contributor

glynhudson commented Nov 24, 2017 via email

@jeremypoulter
Copy link
Collaborator Author

If you are using normal DNS on your router you should use a different domain name like .lan or .home. It is (quite rightly) assumed that .local is going to be a mDNS lookup and hence slow so we do the switch to IP. This is nothing to do with your home setup.

Jeremy

@glynhudson
Copy link
Contributor

Thanks, your totally right. I've just switched to using openevse.home and adjuasted the DNS on my router and it's working great only requiring a single auth now. Issue has been fixed. Thanks again.

@glynhudson glynhudson closed this Nov 24, 2017
@glynhudson glynhudson reopened this Nov 24, 2017
@glynhudson glynhudson merged commit a281efa into OpenEVSE:stable Nov 24, 2017
Stef-Sijben pushed a commit to Stef-Sijben/ESP8266_WiFi_v2.x that referenced this pull request Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants