Hi Guys, so I’m trying to create a KS with an appToken but I’m not able to, right now I’m using the API try out options that you guys provide through the documentation (no code so far), I’m going to list the steps here and the results that I’m getting.
- Create an AppToken with
appToken.add
, this works as expected. - I tried creating the token with sessionType as ADMIN / USER (both of them gave me the same results when trying to create the KS).
- The privileges I’m using when creating the token are:
sview:*,list:*,download:*
, not sure if this really matter because the creation process of the token pass successfully. - Example of the response I get from creating the appToken:
{
"id": "0_o7l19k80",
"token": "f973211b7115b849cc0b5",
"partnerId": 2422451,
"createdAt": 1537206876,
"updatedAt": 1537206876,
"status": 2,
"expiry": 1637206833,
"sessionType": 2,
"sessionDuration": 3600,
"sessionPrivileges": "sview:*,list:*,download:*",
"hashType": "SHA256",
"description": "Jo's local app token",
"objectType": "KalturaAppToken"
}
- After this I try to use
appToken.startSession
withid
(being the token id) andtokenHash
(being thetoken
attribute). - The response I get is this:
{
"code": "INVALID_APP_TOKEN_HASH",
"message": "Invalid application token hash",
"objectType": "KalturaAPIException",
"args": []
}
What I expect is getting a successful KS. Help here would be much appreciate.
Thanks.