@@ -47,7 +47,8 @@ def __call__(self, request):
47
47
],
48
48
)
49
49
return JsonResponse (
50
- data = error_response .model_dump (mode = "json" , exclude_none = True ), status = status .HTTP_401_UNAUTHORIZED
50
+ data = error_response .model_dump (mode = "json" , exclude_none = True ),
51
+ status = status .HTTP_401_UNAUTHORIZED
51
52
)
52
53
53
54
except (TokenMissingError , TokenExpiredError , TokenInvalidError ) as e :
@@ -66,7 +67,8 @@ def __call__(self, request):
66
67
],
67
68
)
68
69
return JsonResponse (
69
- data = error_response .model_dump (mode = "json" , exclude_none = True ), status = status .HTTP_401_UNAUTHORIZED
70
+ data = error_response .model_dump (mode = "json" , exclude_none = True ),
71
+ status = status .HTTP_401_UNAUTHORIZED
70
72
)
71
73
72
74
def _try_authentication (self , request ) -> bool :
@@ -186,7 +188,8 @@ def _handle_rds_auth_error(self, exception):
186
188
errors = [ApiErrorDetail (title = ApiErrors .AUTHENTICATION_FAILED , detail = str (exception ))],
187
189
)
188
190
return JsonResponse (
189
- data = error_response .model_dump (mode = "json" , exclude_none = True ), status = status .HTTP_401_UNAUTHORIZED
191
+ data = error_response .model_dump (mode = "json" , exclude_none = True ),
192
+ status = status .HTTP_401_UNAUTHORIZED
190
193
)
191
194
192
195
def _handle_google_auth_error (self , exception ):
@@ -196,7 +199,8 @@ def _handle_google_auth_error(self, exception):
196
199
errors = [ApiErrorDetail (title = ApiErrors .AUTHENTICATION_FAILED , detail = str (exception ))],
197
200
)
198
201
return JsonResponse (
199
- data = error_response .model_dump (mode = "json" , exclude_none = True ), status = status .HTTP_401_UNAUTHORIZED
202
+ data = error_response .model_dump (mode = "json" , exclude_none = True ),
203
+ status = status .HTTP_401_UNAUTHORIZED
200
204
)
201
205
202
206
@@ -233,4 +237,4 @@ def get_current_user_info(request) -> dict:
233
237
}
234
238
)
235
239
236
- return user_info
240
+ return user_info
0 commit comments