Start test for Auth Code Flow.

This commit is contained in:
juanifioren 2015-02-13 10:44:09 -03:00
parent b4fb646f4d
commit d526352e28
2 changed files with 12 additions and 2 deletions

View file

@ -96,4 +96,15 @@ class CodeFlowTestCase(TestCase):
is_next_ok = next_url == url
except:
is_next_ok = False
self.assertEqual(is_next_ok, True)
self.assertEqual(is_next_ok, True)
def test_authorize_user_consent(self):
url = self._create_authorize_url(response_type='code')
request = self.factory.get(url)
# Simulate that the user is logged.
request.user = self.user
response = AuthorizeView.as_view()(request)
import pdb; pdb.set_trace()

View file

@ -75,7 +75,6 @@ class AuthorizeView(View):
return HttpResponseRedirect(uri)
class TokenView(View):
def post(self, request, *args, **kwargs):