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

Federated (Facebook/Google) Login Always Shows 'Facebook Login' in Title #637

Open
CircuitByrd opened this issue Jan 27, 2025 · 5 comments

Comments

@CircuitByrd
Copy link

When logging in using a third party identity provider, the option of Facebook or Google exists.
If Google is selected, the Google login interface is correctly displayed in the frame, but the title of the window is 'Facebook Login'.
This could confuse users or erode trust.

Image

@CircuitByrd
Copy link
Author

This looks like an easy fix: minigalaxy/ui/login.py
Line 45 defines the title for "any pop-up windows during authentication" as "Facebook Login"
This could be made more generic, such as "SSO Login" "Third Party Login" "Federated Login" etc.

@GB609
Copy link
Collaborator

GB609 commented Jan 28, 2025

I think we could also add a listener to the webview and take the title of the target url instead.
This way we take full advantage of the the webview output which should already be localized by the browser/server.

Something like

 def on_create(self, widget, action):
        popup = Gtk.Dialog(title=_("Login"), parent=self, flags=0, buttons=())
        webview = WebKit2.WebView.new_with_related_view(widget)
        change_dialog_title = lambda : popup.set_title(webview.get_title())
        webview.connect('notify::title', change_dialog_title)
        webview.load_uri(action.get_request().get_uri())
        webview.__dict__['popup'] = popup
        webview.connect('close', self.on_close_popup)
        popup.get_content_area().pack_start(webview, True, True, 0)
        popup.set_size_request(400, 600)
        popup.set_modal(True)
        popup.show_all()
        return webview

I'm going to run a little test for that once i have the time.

@sharkwouter
Copy link
Owner

Thanks for bringing this up, I wasn't aware. I'd take a PR for either of these solutions.

@sharkwouter
Copy link
Owner

The reason it was like that is that before Facebook was the only additional way to authenticate.

@GB609
Copy link
Collaborator

GB609 commented Jan 29, 2025

I've created a pull request for this little fix: #638.
But i didn't see an option to use facebook for login. I could only see google and discord.
Has facebook been dropped?

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

No branches or pull requests

3 participants