Skip to content
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

don't keep state in OAuth1Service #12

Closed
wants to merge 2 commits into from

Conversation

joeshaw
Copy link
Contributor

@joeshaw joeshaw commented Jun 1, 2012

We can't keep state for things like access_tokens because the service is designed to be a singleton used potentially by many different users with different access_tokens and in different steps of the OAuth process.

Python 2.6 doesn't have unittest.TestCase.assertIsNotNone, among
others.  If we don't have it, try to import unittest2 as unittest.
We can't keep state, because this service object is likely shared
across many different uses (and people) -- if an access token is cached,
it might be reused by another user who is trying to get a request
token.
@maxcountryman
Copy link
Contributor

Can you break up these commits? Session problems don't depend on unittest2. :)

@joeshaw
Copy link
Contributor Author

joeshaw commented Jun 1, 2012

You want them in separate pull requests?

@maxcountryman
Copy link
Contributor

Actually I'm just going to rollback that module. It's easier.

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