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

missing docs for how to supply a Flow instance with state from authorization_url #113

Closed
Lx opened this issue Apr 10, 2021 · 1 comment
Closed

Comments

@Lx
Copy link
Contributor

Lx commented Apr 10, 2021

Is your feature request related to a problem? Please describe.

I need to get run Flow.fetch_token on a different Flow instance than the one I used to get the authorization_url.

The docs for authorization_url say that a state is returned, and:

If your application is using a different Flow instance to obtain the token, you will need to specify the state when constructing the Flow.

However, there is no obvious way to actually specify that state when constructing that Flow, because there is no state argument/parameter on any Flow constructor or factory (such as Flow.from_client_config). Simply passing the state as a named parameter to fetch_token doesn't do what is expected either.

Describe the solution you'd like

Please update the documentation to show how a state (as returned by authorization_url) would be fed into a new Flow instance.

@Lx
Copy link
Contributor Author

Lx commented Apr 10, 2021

D'oh, answered my own question with some further digging. The state parameter is ultimately consumed by OAuth2Session, as already explicitly stated in the docs. Sorry.

@Lx Lx closed this as completed Apr 10, 2021
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