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

Using the python script headless gives issues respawning the browser for OAuth2 #33

Open
Ash-Labs opened this issue Nov 11, 2022 · 1 comment

Comments

@Ash-Labs
Copy link

I am using the script succesfully in conjuction with a php framework.
I call the script and reply the data in JSON format.

When it needs to re-authorize it should open the browser.

Example:
REFRESH - Failed to use refresh token, starting new authorization flow.

Then i use this in a GUI type call from terminal this works without any issues.
When calling the script from inside my PHP framework, or headless from SSH, it refuses to open the browser and the script is broken.
Is there any way i can resolve this issue ?

@Ash-Labs
Copy link
Author

So there is a possibility for a long expiration time for the OAuth token.

https://cloud.google.com/apigee/docs/api-platform/antipatterns/oauth-long-expiration

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

1 participant