Start test for Auth Code Flow.
This commit is contained in:
parent
b4fb646f4d
commit
d526352e28
2 changed files with 12 additions and 2 deletions
|
@ -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()
|
|
@ -75,7 +75,6 @@ class AuthorizeView(View):
|
|||
|
||||
return HttpResponseRedirect(uri)
|
||||
|
||||
|
||||
class TokenView(View):
|
||||
|
||||
def post(self, request, *args, **kwargs):
|
||||
|
|
Loading…
Reference in a new issue