Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
judtinzhang committed Nov 5, 2023
1 parent 1e5e796 commit 2402252
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
1 change: 0 additions & 1 deletion backend/identity/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from django.urls import path

from identity.views import AttestView, JwksInfoView, RefreshJWTView


Expand Down
7 changes: 3 additions & 4 deletions backend/identity/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 1 addition & 2 deletions backend/tests/identity/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2402252

Please sign in to comment.