mirror of
https://github.com/LiveContainer/LiveContainer.git
synced 2026-04-25 09:05:53 +03:00
[GH-ISSUE #242] [BUG] Redirecting "Open in App" URL schemes for login purposes #219
Labels
No labels
bug
compatibility
enhancement
multitasking
pull-request
safe area
status: broken
status: usable
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/LiveContainer#219
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Software-Cat on GitHub (Dec 6, 2024).
Original GitHub issue: https://github.com/LiveContainer/LiveContainer/issues/242
Describe the bug
The login process for certain apps requires opening a website in the browser, then using the "Open in App" functionality to send the auth token to the app.
For instance, to log in to Winston for Reddit, you must perform some steps in the app, then open a website in the browser https://app.winston.cafe/auth-success?state=EXAMPLE_STATE&code=EXAMPLE_CODE, then click the "Jump to Winston" link, upon which the auth token is sent to the app.
Here, the link has a special href beginning with
winstonapp://, meaning it attempts to open Winston directly, not Winston in live container.In an attempt to fix this, I ran a Nginx server hosting a link but with
winstonapp://replaced withlivecontainer://. Upon clicking the link, I was indeed prompted to "Open in Livecontainer", however, the auth token did not get sent through to Winston running in livecontainer, thus making the app impossible to login.Instructions to reproduce
What version of LiveContainer are you using?
3.1.0-release (main/7b23e9e)
Other info
Related Issue: https://github.com/khanhduytran0/LiveContainer/issues/162
@hugeBlack commented on GitHub (Dec 7, 2024):
There's a link button on the top right corner of LiveContainer so you can use that to open your login url scheme
@Software-Cat commented on GitHub (Dec 7, 2024):
Thanks for your help!
Just attempted it. Winston opens correctly but after that in-app safari opens automatically and navigates to https://auth-success/?state=…&code=… A nonexistent website.
I have not personally seen any other app using this login method so probably low priority for now. Really excited by some of the updates coming out for 3.1
@hugeBlack commented on GitHub (Dec 7, 2024):
In 3.1.0 I made some changes to how "open in app", you can have a try. I didn't do before this because I think extracting url schemes from Safari is quite difficult to preform on-device.
@Mspy1 commented on GitHub (Dec 9, 2024):
I tried to replicate this for Regram authentication, however. Pressing login on the regram website tries to redirect you to official instagram app. I tried to redirect it to Livecontainer with the shortcut but no luck. Deleting instagram results in app throwing ‘’Safari cannot open this app because the adress is invalid”.
@hugeBlack commented on GitHub (Dec 9, 2024):
you should send the url scheme you extracted to the shortcut, not the website. We cannot intercept url schemes (the thing redirects you to the official app) inside safari.
If you don't know how to extract, try another way of login.
@Mspy1 commented on GitHub (Dec 9, 2024):
I only changed href to redirect the app authentication to LiveContainer instead of the Instagram app. But it did not work as the app doesn’t see it. Also, I think I might not know how to do it properly. Thanks for the long reply anyway.
@hugeBlack commented on GitHub (Dec 9, 2024):
@Mspy1 Alright, it seems you didn't get my point. Let me give you an example:
instagram://login=xxxxxaW5zdGFncmFtOi8vbG9naW49eHh4eHg=livecontainer://open-url?url=aW5zdGFncmFtOi8vbG9naW49eHh4eHg=@Mspy1 commented on GitHub (Dec 9, 2024):
I managed to login. Thanks for the help.
@michael1900 commented on GitHub (Dec 10, 2024):
What procedure did you use to extract the url scheme? Thanks
@Software-Cat commented on GitHub (Dec 10, 2024):
Regram login was very inconsistent for me.
livecontainer://open-url?url=...livecontainer://open-web-page?url=...Tested on newest build at time of writing:
github.com/hugeBlack/LiveContainer@386ae51841@Software-Cat commented on GitHub (Dec 10, 2024):
Procedure for Brave Browser iOS:
@dnfanjos commented on GitHub (Dec 16, 2024):
I tried all of these methods with Dragalia Lost (Private Server) and could not do anything
It uses the pop-up window login instead of a browser and only allow login whilst that popup window is open
Trying to log in using another browser, or getting the schema and using the link button does not work and just opens the app as normal.
Thankfully the game is playable without an account, but it would be cool to sync my progress (and there must be games out there that require login)
@Impure2411 commented on GitHub (Jan 1, 2025):
Thanks, it works for Winston.
@mateusrez commented on GitHub (May 29, 2025):
I’m having the same issue with Abode Lightroom app. How can I make “https://auth.services.adobe.com/…“ redirect me to the app loaded in LiveContainer
@aasutossh commented on GitHub (Jul 19, 2025):
I recorded a video if anyone is feeling hard. No audio or text overlays. I hope it’s helpful. Sorry about the keyboard noise.
https://youtu.be/acfpdXPCfaE?feature=shared
@Charliefr3sh commented on GitHub (Sep 6, 2025):
Can some try and login to AutoCAD
@Okabeh commented on GitHub (Sep 23, 2025):
I know this is an 9 months old post but.. I tried this for Narwhal and couldn't get through it. It opens LiveContainer but nothing happens.
@immabky commented on GitHub (Feb 18, 2026):
Can you also help me to log into the game "last day on earth"? Thank you!