diff --git a/backend/identity/urls.py b/backend/identity/urls.py index 8becdf4c..3a1a7424 100644 --- a/backend/identity/urls.py +++ b/backend/identity/urls.py @@ -1,5 +1,4 @@ from django.urls import path - from identity.views import AttestView, JwksInfoView, RefreshJWTView diff --git a/backend/identity/views.py b/backend/identity/views.py index 5e2cf08c..5265c318 100644 --- a/backend/identity/views.py +++ b/backend/identity/views.py @@ -6,16 +6,15 @@ from django.utils.text import slugify from django.views.decorators.csrf import csrf_exempt from django.views.generic import View -from jwcrypto import jwt -from oauth2_provider.settings import oauth2_settings -from oauth2_provider.views.mixins import OAuthLibMixin - from identity.utils import ( ID_PRIVATE_KEY, SIGNING_ALG, mint_access_jwt, mint_refresh_jwt, ) +from jwcrypto import jwt +from oauth2_provider.settings import oauth2_settings +from oauth2_provider.views.mixins import OAuthLibMixin @method_decorator(csrf_exempt, name="dispatch") diff --git a/backend/tests/identity/test_views.py b/backend/tests/identity/test_views.py index 08f1c9c3..d7a93dc1 100644 --- a/backend/tests/identity/test_views.py +++ b/backend/tests/identity/test_views.py @@ -6,11 +6,10 @@ from django.contrib.auth import get_user_model from django.test import Client, TestCase from django.urls import reverse +from identity.views import SIGNING_ALG from jwcrypto import jwk, jwt from oauth2_provider.models import get_application_model -from identity.views import SIGNING_ALG - class AttestTestCase(TestCase): def setUp(self):