如何在 Google API 客户端库中为 python 设置 OAuth 2.0 状态参数
How to set the OAuth 2.0 state parameter in the Google API client library for python
oauth2client.client.OAuth2WebServerFlow()
构造函数及其 step1_get_authorize_url
方法均未以任何方式接受状态参数。我知道我可以在会话 cookie 中存储状态,但我仍然很好奇库是否以某种方式支持状态参数。
这目前是不可能的。早些时候提出了一个问题来解决这个问题:https://github.com/google/oauth2client/issues/170 但它还没有得到解决。
oauth2client.client.OAuth2WebServerFlow()
构造函数及其 step1_get_authorize_url
方法均未以任何方式接受状态参数。我知道我可以在会话 cookie 中存储状态,但我仍然很好奇库是否以某种方式支持状态参数。
这目前是不可能的。早些时候提出了一个问题来解决这个问题:https://github.com/google/oauth2client/issues/170 但它还没有得到解决。