DescriptionAdding a credentials_from_code and credentials_from_clientsecrets_and_code function, based on suggestions from Joe. Both functions create a OAuth2WebServerFlow object, and then perform just the steps necessary to exchange an authorization_code for an access token, which gets wrapped up in a OAuth2Credentials object.
These are primarily used for the "Get an authorization code from the client Javascript library, then pass that down to the server to exchange for an access_token" approach.
Patch Set 1 #
Total comments: 7
Patch Set 2 : Added four little unit test and made a few minor corrections, as per jgregorio's helpful suggestions #
Total comments: 6
Patch Set 3 : Added a "Raises" section to the documentation for our two calls #
Total comments: 2
Patch Set 4 : Reorganzied the imports. (Almost there...) #MessagesTotal messages: 10
|