-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
[BUG] Redirecting "Open in App" URL schemes for login purposes #242
Comments
There's a link button on the top right corner of LiveContainer so you can use that to open your login url scheme |
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 |
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.
|
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”. |
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. |
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. |
@Mspy1 Alright, it seems you didn't get my point. Let me give you an example:
|
I managed to login. Thanks for the help. |
What procedure did you use to extract the url scheme? Thanks |
Regram login was very inconsistent for me.
Tested on newest build at time of writing: hugeBlack@386ae51 |
Procedure for Brave Browser iOS:
|
I tried all of these methods with Dragalia Lost (Private Server) and could not do anything |
Thanks, it works for Winston.
|
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: #162
The text was updated successfully, but these errors were encountered: