diff --git a/djangowind/auth.py b/djangowind/auth.py index f3242b6..cd64aef 100644 --- a/djangowind/auth.py +++ b/djangowind/auth.py @@ -115,6 +115,7 @@ def get_saml_assertion(ticket): + """""" """""") + SAML_1_0_NS = 'urn:oasis:names:tc:SAML:1.0:' SAML_1_0_PROTOCOL_NS = '{' + SAML_1_0_NS + 'protocol' + '}' SAML_1_0_ASSERTION_NS = '{' + SAML_1_0_NS + 'assertion' + '}' diff --git a/djangowind/tests/test_auth.py b/djangowind/tests/test_auth.py index a03fac2..1cfd9f6 100644 --- a/djangowind/tests/test_auth.py +++ b/djangowind/tests/test_auth.py @@ -180,6 +180,7 @@ def test_validate_tr_success(self, mock_urlopen): "&service=https%3A//slank.ccnmtl.columbia.edu/accounts/" "caslogin/%3Fnext%3D/") + TR_SUCCESS = """ test_claim diff --git a/djangowind/views.py b/djangowind/views.py index be0cd87..47addf7 100644 --- a/djangowind/views.py +++ b/djangowind/views.py @@ -82,6 +82,8 @@ def login(request, template_name='registration/login.html', 'site': current_site, 'cas_base': get_cas_base(), }) + + login = never_cache(login) diff --git a/test_reqs.txt b/test_reqs.txt index f384f8c..4f06fd4 100644 --- a/test_reqs.txt +++ b/test_reqs.txt @@ -1,8 +1,8 @@ -coverage==4.2 +coverage==4.4 mock==2.0.0 -flake8==3.0.2 -django-jenkins==0.19.0 +flake8==3.3.0 +django-jenkins==0.110.0 pep8==1.7.0 -pyflakes==1.2.3 +pyflakes==1.5.0 statsd==3.2.1 django-statsd-mozilla==0.3.16