File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -560,6 +560,7 @@ def generate_jwt_response(
560560
561561 def _get_default_headers (self , pswd : str | None = None ):
562562 headers = _default_headers .copy ()
563+ headers ["x-descope-project-id" ] = self .project_id
563564 bearer = self .project_id
564565 if pswd :
565566 bearer = f"{ self .project_id } :{ pswd } "
Original file line number Diff line number Diff line change 1- from http import HTTPStatus
21import json
32import os
43import unittest
54from enum import Enum
5+ from http import HTTPStatus
66from unittest import mock
77from unittest .mock import patch
88
@@ -456,6 +456,7 @@ def test_exchange_access_key(self):
456456 headers = {
457457 ** common .default_headers ,
458458 "Authorization" : f"Bearer { self .dummy_project_id } :dummy access key" ,
459+ "x-descope-project-id" : self .dummy_project_id ,
459460 },
460461 params = None ,
461462 json = {"loginOptions" : {"customClaims" : {"k1" : "v1" }}},
You can’t perform that action at this time.
0 commit comments