Skip to content

Commit 209af5b

Browse files
committed
Add feed_id to JWT for url redirects
1 parent 7006e35 commit 209af5b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎stream/client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def create_redirect_url(self, target_url, user_id, events):
322322
getstream.io/personalization
323323
'''
324324
# generate the JWT token
325-
auth_token = self.create_jwt_token('redirect_and_track', '*', user_id=user_id)
325+
auth_token = self.create_jwt_token('redirect_and_track', '*', '*', user_id=user_id)
326326
# setup the params
327327
params = dict(auth_type='jwt', authorization=auth_token, url=target_url)
328328
params['api_key'] = self.api_key

‎stream/tests/test_client.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,6 +1068,7 @@ def test_create_email_redirect(self):
10681068
self.assertEqual(decoded, {
10691069
'resource': 'redirect_and_track',
10701070
'action': '*',
1071+
'feed_id': '*',
10711072
'user_id': 'tommaso'
10721073
})
10731074

0 commit comments

Comments
 (0)