File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
tests/sentry/api/endpoints Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1616 RpcUserOrganizationContext ,
1717)
1818from sentry .utils import jwt
19- from sentry .utils .hashlib import md5_text
2019
2120logger = logging .getLogger (__name__ )
2221
@@ -71,7 +70,7 @@ def get(
7170 now = int (datetime .datetime .now (datetime .UTC ).timestamp ())
7271 exp = now + JWT_VALIDITY_WINDOW_SECONDS
7372 # intercom creates chat history based on this ID so we need one per (org, user) pair
74- intercom_user_id = md5_text ( f"{ user .id } -{ organization .id } " ). hexdigest ()
73+ intercom_user_id = f"{ user .id } -{ organization .id } "
7574
7675 # Build JWT claims - user_id is required by Intercom
7776 claims = {
Original file line number Diff line number Diff line change 11from sentry .testutils .cases import APITestCase
22from sentry .testutils .silo import control_silo_test
33from sentry .utils import jwt
4- from sentry .utils .hashlib import md5_text
54
65
76@control_silo_test
@@ -28,7 +27,7 @@ def test_get_jwt_without_secret_configured(self) -> None:
2827 def test_get_jwt_success (self ) -> None :
2928 """With feature flag and secret configured, should return JWT and user data."""
3029 test_secret = "test-intercom-secret-key"
31- intercom_user_id = md5_text ( f"{ self .user .id } -{ self .organization .id } " ). hexdigest ()
30+ intercom_user_id = f"{ self .user .id } -{ self .organization .id } "
3231
3332 with (
3433 self .feature ("organizations:intercom-support" ),
You can’t perform that action at this time.
0 commit comments