-
-
Notifications
You must be signed in to change notification settings - Fork 408
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
Integrate an Epic login into the app (but not directly) #614
Comments
It's pretty simple. There is no need for a custom protocol. |
launching a local server is a security risk (see https://www.electronjs.org/docs/latest/tutorial/security). There already is a protocol in heroic, called 'heroic://' hence it makes sense to use it. We could also use this electron.js method called 'protcol.interceptHttpProtocol' |
I was looking into this. I tried adding a heroic://... url for the redirectUrl parameter of the login url but epic does not allow custom urls there unless I'm missing something I'm also not sure I understand the idea of the local server either what about opening the login url but in a webview inside the app? then we can use the webview events (https://www.electronjs.org/docs/latest/api/webview-tag/#event-did-stop-loading for example) to know when it finished doing something and then we inspect the content to look for the sid? though it will require the user to login in the webview and if you use something like login with google you then need to login with google too, which is not ideal |
The only real way of doing this (since you need the credentials of the "real" launcher) is to embed the login. Doing so requires a few things to be added to the See what I did for legendary for reference: https://github.com/derrod/legendary/blob/master/legendary/utils/webview_login.py |
When we have the website ready we can have a redirect URL. |
No you can't. Because any URL that's not epic's own domain won't work. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'm trying this approach and it worked fine once, but now it doesn't. Then, I tried to use the find function to pass a Regex to select everything inside the so, I'll start from scratch on that and try to use a different approach. |
Good news! |
Is your feature request related to a problem? Please describe.
The current SID implementation is confusing.
Describe the solution you'd like
An epic login, but outside Heroic (so open epic login in a browser) and then redirect to heroic with our protocol (heroic://login/SID) automatically. So the user only needs to login and that's it!
Describe alternatives you've considered
None
Additional context
See #42
The text was updated successfully, but these errors were encountered: