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

Saving the auth code token between oauth2 calls. #71

Closed
quistian opened this issue Dec 23, 2022 · 1 comment
Closed

Saving the auth code token between oauth2 calls. #71

quistian opened this issue Dec 23, 2022 · 1 comment

Comments

@quistian
Copy link

In testing it seems like each time one uses oauth2 e.g.

pc = PyCloud.oauth2_authorize(client_id=api_id, client_secret=api_secret)

There's a redirect and one has to login each time. E.g. the auth_token does not seem to get reused.
I see it is printed out:

"GET /?code=abc123....123abc&locationid=1&hostname=api.pcloud.com "

Is there a way to save the token so it can be reused?

@quistian
Copy link
Author

I've been able to modify your code to look for a local access token before going out the tokenhander.
So all seems to be well.

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