-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
OAuth2Session.add_token()
does not exist
#11
Comments
Sorry it actually exists as a property, but it was returning @property
def add_token(self):
if not self.token:
return None
token_type = self.token['token_type'].lower()
if token_type == 'bearer':
return add_bearer_token I followed the docs and had |
@nfvs OAuth2Session is designed for OAuth 2. Currently, it only supports
Where did you find this in the documentation? It must be a mistake. Are you trying OAuth 1? Then you should use |
I'm using OAuth 2 actually. My mistake, the model only has I'm storing the tokens in flask's session cookie, right after calling |
@nfvs It is not safe to store a token in session cookies. If you are just doing it for testing, that's ok. |
This is the snippet that triggers that (in
request()
):OAuth2Session.add_token
does not exist (it'sNone
).The text was updated successfully, but these errors were encountered: