Skip to content

Commit

Permalink
Update kaltura.py
Browse files Browse the repository at this point in the history
Include session type during authentication
  • Loading branch information
angrave authored Aug 19, 2024
1 parent a56b2ba commit cde85c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PythonRpcServer/kaltura.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def getClient(self, partnerId, tokenId, appToken):
# generate token hash from ks + appToken
tokenHash = hashlib.sha256(result.ks.encode('ascii')+appToken.encode('ascii')).hexdigest()
# start an app token session
result = client.appToken.startSession( tokenId, tokenHash, '', '', expiry)
result = client.appToken.startSession( tokenId, tokenHash, '', KalturaSessionType.ADMIN, expiry)
client.setKs(result.ks)
return client,result.ks
# Returns dict of Media information for a specific media
Expand Down

0 comments on commit cde85c3

Please sign in to comment.