Skip to content

Commit e87381d

Browse files
committed
error msg update
1 parent 065fc93 commit e87381d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/dot_ext/views/authorization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def form_valid(self, form):
198198
access_token_delete_cnt=access_token_delete_cnt,
199199
refresh_token_delete_cnt=refresh_token_delete_cnt,
200200
data_access_grant_delete_cnt=data_access_grant_delete_cnt)
201-
return JsonResponse({"error": 'The state parameter is required'}, status=http_status.HTTP_400_BAD_REQUEST)
201+
return JsonResponse({"error": 'Requested scopes denied'}, status=http_status.HTTP_400_BAD_REQUEST)
202202
try:
203203
uri, headers, body, status = self.create_authorization_response(
204204
request=self.request, scopes=scopes, credentials=credentials, allow=allow

0 commit comments

Comments
 (0)