Skip to content

Conversation

boivie
Copy link
Contributor

@boivie boivie commented Sep 23, 2014

Due to 5d0fc1182f6d9826764cc43ade99bc5e5a81c711 in oauthlib,
there are now separate generators for access tokens and refresh
tokens.

Adding a hook to also specify refresh token generator.

Test cases are added.

Due to 5d0fc1182f6d9826764cc43ade99bc5e5a81c711 in oauthlib,
there are now separate generators for access tokens and refresh
tokens.

Adding a hook to also specify refresh token generator.

Test cases are added.
Copy link
Owner

Choose a reason for hiding this comment

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

callable?

I think isinstance is better.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, callable is "undeprecated" as of http://bugs.python.org/issue10518 so I guess callable() would be the way to do it?

@boivie
Copy link
Contributor Author

boivie commented Sep 24, 2014

Well, it's up to you to decide :)

I think callable() still is the way to go - see http://stackoverflow.com/questions/16388059/using-callablex-vs-hasattrx-call

But please let me know your decision.

@jamesonjlee
Copy link

this would be nice

@boivie
Copy link
Contributor Author

boivie commented Oct 17, 2014

ping :)

@lepture
Copy link
Owner

lepture commented Oct 17, 2014

@boivie merged in 069dd0a

@lepture lepture closed this Oct 17, 2014
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.

3 participants