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:
Hi @jess, your guidelines helped me in figuring out what was wrong in my code. Just a minor recommendation, it would be nice if you guys have an example that doesn’t use your client libraries, that way people like me (using Go, a language which you guys don’t provide a client library) is easier for us to follow the steps for creating a Kaltura Session through an AppToken.
Hello, I am experiencing the same error, while studying the AppToken Authentication workflow. I am trying to implement it in Ruby (using the Digest gem for hashing).
I also tried the same steps in another language (NodeJS), but the error is the same: whenever it comes to start the privileged session with the hashed token, the token hash is considered invalid.
I am able to start a widget session, I am able to retrieve previously created test tokens, but somehow the computed hash token is not considered valid.
Thanks for your reply. I have managed to solve it now. Apparently it had to do with the Digest gem, I could not manage to compute a recognized/valid token hash with a SHA256 token. I had to choose a SHA1 token.
Then I was able to compute a valid token hash with a code like that: