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

OAuth2 and Container #62

Open
umumpaul opened this issue Oct 27, 2023 · 4 comments
Open

OAuth2 and Container #62

umumpaul opened this issue Oct 27, 2023 · 4 comments

Comments

@umumpaul
Copy link

Have you ever run this package in a container setup? I guess because of python official image, or lightweight linux like alphin, does not come with a browser. Another reason I can think of is the callback (localhost:8000) is not working, albeit I open the port during start. Any tips is welcome.

@mattdodge
Copy link
Owner

You should not need a browser to run this library, it should work fine in a container. The yahoofantasy login CLI command will output the URL you will need to go to on your actual machine, you just need to make sure you open the port to the container.

@umumpaul
Copy link
Author

using flag --network=host when docker run?

@umumpaul
Copy link
Author

in cli/login.py there's using webbrowser.open_new_tab and I think it's why it's not working in docker (running python image)

@mattdodge
Copy link
Owner

That shouldn't be required to use the library, you may need to log in manually or a different way if it's giving you trouble though. Do you have any kind of stack trace/error log/code snippet I could look at? It's difficult to help without something to reference

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

2 participants