Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Avoid populating spurious token credentials #542

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

Merged
merged 3 commits into from
May 8, 2018

Conversation

skion
Copy link
Member

@skion skion commented May 1, 2018

This patch ensures we do not pick up client attributes too early.

@skion skion added this to the 2.0.8 milestone May 1, 2018
"""Add attributes from an auth code response to self."""

if 'code' in response:
self.code = response.get('code')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initialize self.code in __init__?

@@ -168,5 +168,5 @@ def parse_request_uri_response(self, uri, state=None, scope=None):
.. _`Section 3.3`: https://tools.ietf.org/html/rfc6749#section-3.3
"""
self.token = parse_implicit_response(uri, state=state, scope=scope)
self._populate_attributes(self.token)
self._populate_token_attributes(self.token)
Copy link
Member

@wiliamsouza wiliamsouza May 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a test_populate_attributes for mobile application?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is now! 👍

@skion skion merged commit 657065d into oauthlib:master May 8, 2018
@skion skion mentioned this pull request May 8, 2018
skion added a commit to skion/oauthlib that referenced this pull request May 18, 2018
@skion skion mentioned this pull request May 21, 2018
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

Successfully merging this pull request may close these issues.

2 participants