From 4c94d2c760431e3a5636d1cf0fd84b95220f6c00 Mon Sep 17 00:00:00 2001 From: Evan Cordell Date: Mon, 27 Mar 2017 10:51:50 -0400 Subject: [PATCH] Fix xAuth test --- test/test_endpoints.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/test_endpoints.py b/test/test_endpoints.py index 39c9928ee..98fc40545 100644 --- a/test/test_endpoints.py +++ b/test/test_endpoints.py @@ -384,8 +384,7 @@ class OAuthTestCase(EndpointTestCase): app.config['DIRECT_OAUTH_CLIENTID_WHITELIST'] = ['deadbeef'] headers = dict(authorization='Basic ' + base64.b64encode('devtable:password')) - resp = self.postResponse('web.authorize_application', headers=headers, form=form, - with_csrf=True, expected_code=302) + resp = self.postResponse('web.authorize_application', headers=headers, form=form, with_csrf=False, expected_code=302) self.assertTrue('access_token=' in resp.headers['Location']) def test_authorize_nocsrf_ratelimiting(self):