missing docs for how to supply a Flow instance with state from authorization_url
Closed this issue · 1 comments
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 thestate
when constructing theFlow
.
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.
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.