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

2FA not supported in WebKitGTK (shows "Start Over" button at login) #37

Open
latenightdef opened this issue May 20, 2024 · 3 comments
Open
Labels
Upstream Issue with an upstream component or project

Comments

@latenightdef
Copy link

I'm trying to connect Butler to my Home Assistant instance that has 2FA enabled. I copied my username and password from my password manager, clicked login and keep getting this page:
image

This issue seems to be also reproducible in GNOME Web, while the login works fine on Firefox & Chromium

@cassidyjames cassidyjames added Upstream Issue with an upstream component or project labels May 24, 2024
@cassidyjames
Copy link
Owner

cassidyjames commented May 24, 2024

If it's reproducible in GNOME Web, unfortunately there's nothing I can do in this app to resolve it. :( What I can do is display a banner noting that 2FA is currently unsupported and link to this issue, though!

@latenightdef could you share the URL of this "Start Over" page, in case it has a unique path that I can match to show the banner on? You can find it by navigating to that page in Butler, and then running this in a terminal:

cat ~/.var/app/com.cassidyjames.butler/config/glib-2.0/settings/keyfile | grep current-url

The URL will be listed as the value for the current-url key.

@cassidyjames cassidyjames changed the title Login keeps showing "Start over" button even though password is correct 2FA not supported in WebKitGTK (shows "Start Over" button at login) May 24, 2024
@latenightdef
Copy link
Author

The value of the current-url key is

https://home.techtransthai.org/auth/authorize?response_type=code&redirect_uri=https%3A%2F%2Fhome.techtransthai.org%2F%3Fauth_callback%3D1&client_id=https%3A%2F%2Fhome.techtransthai.org%2F&state=eyJoYXNzVXJsIjoiaHR0cHM6Ly9ob21lLnRlY2h0cmFuc3RoYWkub3JnIiwiY2xpZW50SWQiOiJodHRwczovL2hvbWUudGVjaHRyYW5zdGhhaS5vcmcvIn0%3D

Also on GNOME Web's address bar:

https://home.techtransthai.org/auth/authorize?response_type=code&redirect_uri=https%3A%2F%2Fhome.techtransthai.org%2F%3Fauth_callback%3D1&client_id=https%3A%2F%2Fhome.techtransthai.org%2F&state=eyJoYXNzVXJsIjoiaHR0cHM6Ly9ob21lLnRlY2h0cmFuc3RoYWkub3JnIiwiY2xpZW50SWQiOiJodHRwczovL2hvbWUudGVjaHRyYW5zdGhhaS5vcmcvIn0%3D

They seemed to be exact same URLs

@cassidyjames
Copy link
Owner

@latenightdef thanks! I'll play with it some more, but it seems like the /auth/authorize path might be enough to match on to show a headerbar. That shouldn't be too hard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Upstream Issue with an upstream component or project
Projects
None yet
Development

No branches or pull requests

2 participants