Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jwks support #437

Merged
merged 8 commits into from
Aug 6, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Sort imports
  • Loading branch information
damelLP committed Aug 1, 2021
commit 44e6d68e7871c63cf1ef92382c3299e13855e06c
5 changes: 2 additions & 3 deletions rest_framework_simplejwt/backends.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import jwt
from django.utils.translation import gettext_lazy as _
from jwt import InvalidAlgorithmError, InvalidTokenError, algorithms, PyJWKClient
import jwt
from jwt import InvalidAlgorithmError, InvalidTokenError, PyJWKClient, algorithms

from .exceptions import TokenBackendError
from .utils import format_lazy
Expand Down Expand Up @@ -59,7 +59,6 @@ def get_verifying_key(self, token):

return self.verifying_key


def encode(self, payload):
"""
Returns an encoded token for the given payload dictionary.
Expand Down