Skip to content

Commit cde85c3

Browse files
authored
Update kaltura.py
Include session type during authentication
1 parent a56b2ba commit cde85c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PythonRpcServer/kaltura.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def getClient(self, partnerId, tokenId, appToken):
9797
# generate token hash from ks + appToken
9898
tokenHash = hashlib.sha256(result.ks.encode('ascii')+appToken.encode('ascii')).hexdigest()
9999
# start an app token session
100-
result = client.appToken.startSession( tokenId, tokenHash, '', '', expiry)
100+
result = client.appToken.startSession( tokenId, tokenHash, '', KalturaSessionType.ADMIN, expiry)
101101
client.setKs(result.ks)
102102
return client,result.ks
103103
# Returns dict of Media information for a specific media

0 commit comments

Comments
 (0)