summaryrefslogtreecommitdiff
path: root/tests/openid/connect/core/grant_types/test_implicit.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/openid/connect/core/grant_types/test_implicit.py')
-rw-r--r--tests/openid/connect/core/grant_types/test_implicit.py18
1 files changed, 4 insertions, 14 deletions
diff --git a/tests/openid/connect/core/grant_types/test_implicit.py b/tests/openid/connect/core/grant_types/test_implicit.py
index 56247d9..c369bb6 100644
--- a/tests/openid/connect/core/grant_types/test_implicit.py
+++ b/tests/openid/connect/core/grant_types/test_implicit.py
@@ -4,18 +4,14 @@ from __future__ import absolute_import, unicode_literals
import mock
from oauthlib.common import Request
-
from oauthlib.oauth2.rfc6749.tokens import BearerToken
-
-from oauthlib.openid.connect.core.grant_types.implicit import ImplicitGrant
-from oauthlib.openid.connect.core.grant_types.hybrid import HybridGrant
from oauthlib.openid.connect.core.grant_types.exceptions import OIDCNoPrompt
-
-from ....unittest import TestCase
+from oauthlib.openid.connect.core.grant_types.hybrid import HybridGrant
+from oauthlib.openid.connect.core.grant_types.implicit import ImplicitGrant
+from tests.oauth2.rfc6749.grant_types.test_implicit import ImplicitGrantTest
+from tests.unittest import TestCase
from .test_authorization_code import get_id_token_mock, OpenIDAuthCodeTest
-from ....oauth2.rfc6749.grant_types.test_implicit import ImplicitGrantTest
-
class OpenIDImplicitInterferenceTest(ImplicitGrantTest):
"""Test that OpenID don't interfere with normal OAuth 2 flows."""
@@ -80,13 +76,7 @@ class OpenIDImplicitTest(TestCase):
self.auth.validate_authorization_request,
self.request)
- # prompt == none requires id token hint
bearer = BearerToken(self.mock_validator)
- h, b, s = self.auth.create_authorization_response(self.request, bearer)
- self.assertIn('error=invalid_request', h['Location'])
- self.assertEqual(b, None)
- self.assertEqual(s, 302)
-
self.request.id_token_hint = 'me@email.com'
h, b, s = self.auth.create_authorization_response(self.request, bearer)
self.assertURLEqual(h['Location'], self.url_fragment, parse_fragment=True)