From df86c94a85114bfb27601ea7a452a3b1ebd03134 Mon Sep 17 00:00:00 2001 From: Shaun Kruger Date: Tue, 24 Nov 2015 10:05:40 -0700 Subject: [PATCH 1/4] Shorten default expirations --- provider/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provider/constants.py b/provider/constants.py index b98c285d..cdbe9306 100644 --- a/provider/constants.py +++ b/provider/constants.py @@ -25,10 +25,10 @@ SCOPES = getattr(settings, 'OAUTH_SCOPES', DEFAULT_SCOPES) -EXPIRE_DELTA = getattr(settings, 'OAUTH_EXPIRE_DELTA', timedelta(days=365)) +EXPIRE_DELTA = getattr(settings, 'OAUTH_EXPIRE_DELTA', timedelta(days=7)) # Expiry delta for public clients (which typically have shorter lived tokens) -EXPIRE_DELTA_PUBLIC = getattr(settings, 'OAUTH_EXPIRE_DELTA_PUBLIC', timedelta(days=30)) +EXPIRE_DELTA_PUBLIC = getattr(settings, 'OAUTH_EXPIRE_DELTA_PUBLIC', timedelta(days=1)) EXPIRE_CODE_DELTA = getattr(settings, 'OAUTH_EXPIRE_CODE_DELTA', timedelta(seconds=10 * 60)) From 7abb7f3c176871d269b9c3a32eb2ec958e62e4a8 Mon Sep 17 00:00:00 2001 From: Shaun Kruger Date: Tue, 24 Nov 2015 10:12:24 -0700 Subject: [PATCH 2/4] Update tests to support Django 1.8 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 1ff91a3b..7d69fa34 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: python env: - - DJANGO="django>=1.7,<1.8" + - DJANGO="django>=1.7,<1.9" python: - "2.7" # command to install dependencies From 1b5a98172dc0fdb4ca2120ff63317138c625e649 Mon Sep 17 00:00:00 2001 From: Shaun Kruger Date: Tue, 24 Nov 2015 10:13:00 -0700 Subject: [PATCH 3/4] Update gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 7073810a..1e521a84 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ _build dist build venv +.idea +*.sqlite From b54e93b49a4d2856f0bbb7b7855f64c39d3d6cec Mon Sep 17 00:00:00 2001 From: Shaun Kruger Date: Tue, 24 Nov 2015 10:16:59 -0700 Subject: [PATCH 4/4] Increment version number for new release. --- provider/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/__init__.py b/provider/__init__.py index f9014086..b2a95f90 100644 --- a/provider/__init__.py +++ b/provider/__init__.py @@ -1 +1 @@ -__version__ = "1.1" +__version__ = "1.2"