Commit Graph

1477 Commits

Author SHA1 Message Date
Spyros Trigazis d94570eb39 Release v4.1.2 (#721)
Signed-off-by: Spyros Trigazis <strigazi@gmail.com>
2017-06-29 12:08:07 -07:00
Spyros Trigazis 98c0a1a8c8 Exclude test in find_packages (#720)
To avoid conflicts with projects that have tests in their top-level
directory:

* exlude tests in find_packages
* add include in MANIFEST.in

Closes: #688

Signed-off-by: Spyros Trigazis <strigazi@gmail.com>
2017-06-29 09:52:05 -07:00
Tomas Reimers 97320af273 Release v4.1.1 (#718) 2017-06-06 09:04:26 -07:00
Tomas Reimers a1da72d15c Pass prompt='consent' from flow_from_clientsecrets (#717) 2017-06-01 12:28:58 -07:00
Jon Wayne Parrott 00926f2058 Release v4.1.0 and deprecate the library (#714) 2017-05-10 16:11:19 -07:00
Jon Wayne Parrott 119b90cbc9 Fix system tests (#713)
Update user key to fix system tests
2017-05-09 14:46:47 -07:00
Jon Wayne Parrott efe567a8f0 Fix ci (#712)
* Add missing docs files

* Fix app engine sdk download command

* Remove PyPy, as cryptography updates seems to have broken oauth2client support since at least v2.0.0
2017-05-09 12:54:17 -07:00
Jon Wayne Parrott cf13958d7d Escape callback error code (#710) 2017-05-09 12:30:32 -07:00
Craig Citro feec15f070 Allow customizing the GCE metadata service address via an env var. (#704)
The goal here is to make it possible for a user of a binary that depends on
this library (eg the google cloud SDK) to be able to customize where it looks
for the GCE metadata service. (An adventurous user can already customize the
GCE metadata service location via the existing global vars in this library.)

The only bit of awkwardness here is really the test: since this is a top-level
statement, reloading is the only way to ensure it works.
2017-03-27 09:47:44 -07:00
Craig Citro a3cf56b659 Make `tox -e flake8` pass. (#705)
This library is in maintenance mode, but no reason to leave travis broken. Two
disables and a better `except` in a test and it's green again.
2017-03-27 09:39:27 -07:00
Craig Citro c055e7f7f5 Typo fix. (#697)
I normally try to restrain my inner copyeditor, but this one was in a docstring that someone might copy-paste.
2017-02-03 09:39:13 -08:00
Jon Wayne Parrott cc3e7d13a4 Include LICENSE in Manifest.in (#694) 2017-01-17 12:25:11 -08:00
Brendan McCollam f75203e64c Remove b64 padding from PKCE values, per RFC7636 (#683) 2016-12-06 09:42:20 -08:00
Clancy Childs f7f656d6aa Store original encoded and signed identity JWT in OAuth2Credentials (#680) 2016-11-28 11:09:30 -08:00
Bill Prin 2da8ccde3f Merge pull request #676 from chripede/django-jsonpickle
Use jsonpickle in django contrib
2016-11-17 12:00:05 -08:00
Christian Pedersen d0078709c2 Use jsonpickle if possible
Fallback to pickle if jsonpickle is not installed
2016-11-17 08:53:01 +01:00
Aditya 92e4ad3329 Fix typo in changelog: aetting --> setting (#668) 2016-10-26 08:24:41 -07:00
Jon Wayne Parrott a731be3620 Release v4.0.0 (#666) 2016-10-14 10:53:53 -07:00
Arthur D. Cherba 3eb691fc46 Include expanded version of Apache 2.0 license. (#663) 2016-10-14 10:44:47 -07:00
Adam Chainz 480c558b7f Release as a universal wheel (#665) 2016-10-14 10:08:31 -07:00
Liran Nuna 999de3ac8b Try to revoke token with POST when getting a 405 (#662)
The OAuth spec does not specify the HTTP verb explicitly but it does hint that POST is the correct verb.
When using the client library with other OAuth services that implement revocation token via a POST, revoking the token will fail.

This commit adds the ability to re-try the revocation process if we get a 405 with the POST verb.
2016-10-06 12:53:16 -07:00
Bill Prin 3f9fdbd5a3 Add Django Samples (#636)
Contains two sets of samples - one for the “Google auth” system and one for the “Django
user auth” system.
2016-09-20 12:28:47 -07:00
Bill Prin 8a6e3b2a34 Fix django authorization redirect by correctly checking validity of credentials (#651) 2016-09-16 15:50:16 -07:00
Nathaniel Manista 9f0618d534 Merge pull request #635 from waprin/django_flake8
Fix flake8 error.
2016-08-20 10:59:00 -07:00
Bill Prin 5315cd9d4e Fix flake8 error 2016-08-19 17:07:09 -07:00
Danny Hermes 51ae8761ea Merge pull request #622 from dhermes/allow-repeated-params
Correct query loss when using parse_qsl to dict
2016-08-17 15:59:57 -07:00
Danny Hermes ebe9ed0bbb Correct query loss when using parse_qsl to dict 2016-08-17 15:56:41 -07:00
Danny Hermes 4c7b3be5a1 Merge pull request #612 from dhermes/fix-599
Use transport module for GCE environment check.
2016-08-16 15:25:37 -07:00
Danny Hermes e332a51cc8 Use transport module for GCE environment check.
Fixes #599.
2016-08-16 14:47:14 -07:00
Nathaniel Manista 547d600c7e Merge pull request #627 from jonparrott/no-author
Remove __author__ lines and add contributors.md.
2016-08-15 10:48:42 -07:00
Jon Wayne Parrott a1136db2eb Remove __author__ lines, add contributors.md
Resolves #626
2016-08-15 10:26:34 -07:00
Pat Ferate 687fdbdb86 Update helper b64 encode/decode tests (#631) 2016-08-15 10:16:15 -07:00
Jon Wayne Parrott 499375cea4 Enable cover tox env on Travis (#628)
Replace fragile app engine sdk download script with gcprepotools script -
this ensures the SDK is up-to-date and is a no-op if the SDK is installed
and up-to-date.

Resolves #617
2016-08-15 09:56:57 -07:00
Pat Ferate 9c1ece5ce4 Check for `bin` directory before cloning pyenv (#630)
Travis creates cached directories if they are not present, so the pyenv
repo was never getting cloned if the cache was empty.
2016-08-15 08:55:56 -07:00
Pat Ferate 5137d7e837 Complete branches from partial test coverages (#629) 2016-08-12 14:15:31 -07:00
Bill Prin c9b4b07525 Switch django models from pickle to jsonpickle (#614) 2016-08-12 12:01:08 -07:00
Pat Ferate c6b30bf420 Clean up imports (#625)
* Treat `tests` as part of the local package
* Import modules instead of objects

Some imports that slipped by last time this was cleaned up.
2016-08-11 13:25:56 -07:00
Pat Ferate e4ad1beeb4 Remove `unittest2` from PKCE test (#624)
This test snuck by the recent removal of `unittest2`
2016-08-11 13:18:21 -07:00
Brendan McCollam 3614fd147a Add support for RFC7636 PKCE (#588)
RFC7636 extends OAuth2 to include a challenge-response protocol
called "Proof Key for Code Exchange" (PKCE) in order to mitigate
attacks in situations where clients that cannot protect a client
secret (e.g.installed desktop applications).
2016-08-11 12:28:19 -07:00
Bill Prin 619dff806e Support new MIDDLEWARE Django 1.10 Setting (#623) 2016-08-11 12:11:33 -07:00
Danny Hermes f439dcbef4 Change status access from header to attribute. (#616)
This is to unify all the times a status is used from the
response (containing header info) of an HTTP request.
2016-08-11 11:16:18 -07:00
Danny Hermes 6a12a1fb58 Remove usage of os.environ.setdefault (#621)
This is somewhat misleading, since it doesn't change the
value of the env. var. in the shell.
2016-08-11 11:14:46 -07:00
Pat Ferate 5190fd70bb Add branch coverage (#615)
It was unintentionally dropped during the migration to pytest.
2016-08-11 09:25:09 -07:00
Danny Hermes c6b70bd3b3 Merge pull request #607 from dhermes/use-transport-request-in-tests
Use transport.request in tests.
2016-08-11 09:08:42 -07:00
Danny Hermes 1a0c4dbf92 Use transport.request in tests.
In the process

- "spring clean" the modules that were touched
- use HttpMock when HttpMockSequence not needed
- add some verifications on new HttpMock's
2016-08-11 08:43:51 -07:00
Danny Hermes b7f3eca135 Merge pull request #610 from dhermes/drop-unittest2
Drop unittest2 dependency
2016-08-11 08:21:44 -07:00
Danny Hermes 0f21a3d6ab Drop unittest2 dependency
No longer needed since Python 2.6 support has been dropped.
2016-08-11 08:14:08 -07:00
Nathaniel Manista 5d08ba40a0 Merge pull request #608 from dhermes/remove-line-continuations
Remove backslash line continuations.
2016-08-10 17:10:53 -07:00
Danny Hermes a10eb17fba Remove backslash line continuations 2016-08-10 17:02:26 -07:00
Danny Hermes 380b3e1c0a Merge pull request #606 from dhermes/fix-up-system-tests-httplib2
Use transport helpers in system tests
2016-08-10 16:05:29 -07:00