Skip to content

Conversation

@singingwolfboy
Copy link
Member

Code that uses requests-oauthlib may want to modify values in the oauth2 session client, but requests-oauthlib doesn't expose them in a consistent way. By exposing getters and setters, other software and libraries that wrap requests-oauthlib can modify these values in a consistent way.

requests-oauthlib wraps WebApplicationClient, so the values
on that client should be exposed on the wrapper.
Copy link
Member

Choose a reason for hiding this comment

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

Why did we lose this function call?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because this function call is in the setter for self.token, so it gets called automatically on line 68.

Copy link
Member

Choose a reason for hiding this comment

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

Aha, missed that: thanks!

@Lukasa
Copy link
Member

Lukasa commented Dec 13, 2015

Thanks @singingwolfboy!

Lukasa added a commit that referenced this pull request Dec 13, 2015
Getters/Setters for wrapped attributes
@Lukasa Lukasa merged commit 27034c1 into requests:master Dec 13, 2015
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