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

Cannot back to Elk when not signed to Mastodon #15

Open
sxzz opened this issue Jan 13, 2023 · 4 comments
Open

Cannot back to Elk when not signed to Mastodon #15

sxzz opened this issue Jan 13, 2023 · 4 comments

Comments

@sxzz
Copy link
Member

sxzz commented Jan 13, 2023

Cannot back to Elk when not signed to Mastodon. It will redirect to original Mastodon server.

For example, initially, I didn't sign in to m.webtoo.ls, and Elk will redirect me to webtools website and required my email and password. After signing in, it will redirect to m.webtoo.ls website instead of backing to Elk app.

@JonasKruckenberg
Copy link
Collaborator

I noticed the same thing (actually links have the same issue rn too I think)
@danielroe can we open the mastodon login page within an iframe instead of the main context? or does that not work for oauth reasons?

@danielroe
Copy link
Member

No, I don't think an iframe should work. And it really shouldn't do this. 🤔

Might need some investigation to see why this differs from the web app.

https://docs.joinmastodon.org/methods/oauth/

@JonasKruckenberg
Copy link
Collaborator

JonasKruckenberg commented Jan 14, 2023

Hmm alright too bad, the broader issue here is that in the setting of a native app, the user doesn't have any navigation controls (so no back and forth buttons) to abort a mastodon login which is kinda unfortunate. If we could use an iframe (or indeed the users default browser maybe?) we could still retain that control over navigation.

Edit: Using the systems default browser might be blocked by missing deep link support in tauri rn

@danielroe
Copy link
Member

It might be possible to make the iframe thing work with a special route in elk 🤔

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