Skip to content

Commit 8ba826c

Browse files
authored
Fix path for stop impersonation (#581)
1 parent d50a04f commit 8ba826c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

descope/management/jwt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def stop_impersonation(
114114
)
115115

116116
response = self._auth.do_post(
117-
MgmtV1.impersonate_path,
117+
MgmtV1.stop_impersonation_path,
118118
{
119119
"jwt": jwt,
120120
"customClaims": custom_claims,

tests/management/test_jwt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def test_stop_impersonation(self):
167167
mock_post.return_value = network_resp
168168
resp = client.mgmt.jwt.stop_impersonation("jwtstr")
169169
self.assertEqual(resp, "response")
170-
expected_uri = f"{common.DEFAULT_BASE_URL}{MgmtV1.impersonate_path}"
170+
expected_uri = f"{common.DEFAULT_BASE_URL}{MgmtV1.stop_impersonation_path}"
171171
mock_post.assert_called_with(
172172
expected_uri,
173173
headers={

0 commit comments

Comments
 (0)