From b228b38e92cdbb0a36da35377e9fb22ea0a8e923 Mon Sep 17 00:00:00 2001 From: "willem.meints@gmail.com" <1550763+wmeints@users.noreply.github.com> Date: Sat, 6 Apr 2024 08:55:23 +0200 Subject: [PATCH] Add support for stateless user authentication in SimpleJWT --- drf_spectacular/contrib/rest_framework_simplejwt.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drf_spectacular/contrib/rest_framework_simplejwt.py b/drf_spectacular/contrib/rest_framework_simplejwt.py index 3decfdec..460d42b9 100644 --- a/drf_spectacular/contrib/rest_framework_simplejwt.py +++ b/drf_spectacular/contrib/rest_framework_simplejwt.py @@ -81,3 +81,7 @@ def get_security_definition(self, auto_schema): class SimpleJWTTokenUserScheme(SimpleJWTScheme): target_class = 'rest_framework_simplejwt.authentication.JWTTokenUserAuthentication' + + +class SimpleJWTStatelessUserScheme(SimpleJWTScheme): + target_class = "rest_framework_simplejwt.authentication.JWTStatelessUserAuthentication"