Tuba icon indicating copy to clipboard operation
Tuba copied to clipboard

[Feature Request]: Do not use a link for internally switching from automatic to manual auth

Open bigntallmike opened this issue 1 year ago • 1 comments

Describe the bug

When registering a new account, after entering the server name, a browser is popped up. If it is the wrong browser, and the user wishes to copy and paste the blue-highlighted link into a different session, 'manual_auth' is what gets copied into the clipboard, instead of a valid URI to use for manual registration with a non-default browser session.

Steps To Reproduce

Open new account window Enter a server url and hit Next Close the opened browser Right-click "try manual authorization" and "Copy Link Address"

Logs and/or Screenshots

No response

Instance Backend

Mastodon

Operating System

Fedora Linux 41 (Xfce)

Package

Flatpak

Troubleshooting information

No response

Additional Context

I run multiple browser instances for work, personal and experimentation and my default browser is never the one with my saved passwords for security reasons.

bigntallmike avatar Jan 23 '25 15:01 bigntallmike

If it is the wrong browser, and the user wishes to copy and paste the blue-highlighted link into a different session

Even if the 'Copy Link Address' action copied the manual link, it would be wrong for your use case. The link that opens when you are adding an account is the 'automatic' one, not the 'manual' one; so if you copied the 'manual' link, there wouldn't be an input to paste your access code manually. What you'd want to do would be to copy the link from the browser address bar that opened and paste it in the browser you want instead.

Which brings me to the second issue

'manual_auth' is what gets copied into the clipboard

That link is an internal one. It doesn't open in your browser, it acts as a button. If you click it, Tuba will open the 'manual' link in your browser and an entry will appear.

What I'm trying to get at is that even if I fixed this issue, it wouldn't make sense as copying the 'manual' link wouldn't make the entry to paste the access code your instance will display manually, so copying it would be meaningless. In that case, I'd say making it copy the manual link would be actually harmful as users would expect it to just work.


What I can do instead if move away from using a link for changing from 'automatic' to 'manual' and instead use a normal button; avoiding this whole confusion altogether.

        Didn't work?
============================
| Try manual authorization |
============================

(might need better wording)


I run multiple browser instances for work, personal and experimentation and my default browser is never the one with my saved passwords for security reasons.

You might find Junction useful! https://flathub.org/apps/re.sonny.Junction

GeopJr avatar Jan 24 '25 09:01 GeopJr