edx.org/login?next= should not be able to point to an asset

ECOM-6463
This commit is contained in:
Ahsan Ulhaq
2017-01-30 18:18:55 +05:00
parent 81ab0d81b9
commit bc418c47c5
6 changed files with 61 additions and 29 deletions

View File

@@ -569,7 +569,8 @@ class ShibSPTestModifiedCourseware(ModuleStoreTestCase):
'data': dict(params),
'follow': False,
'REMOTE_USER': 'testuser@stanford.edu',
'Shib-Identity-Provider': 'https://idp.stanford.edu/'}
'Shib-Identity-Provider': 'https://idp.stanford.edu/',
'HTTP_ACCEPT': "text/html"}
response = self.client.get(**request_kwargs)
# successful login is a redirect to the URL that handles auto-enrollment
self.assertEqual(response.status_code, 302)