GetChannelCred

I was wondering if anyone has been able to get GetChannelCred[/url:i50kmpuw] working as intended. It looks like it would be a pretty slick way to authenticate users. Its a bit hard to debug, since I’m guessing that it only works for channels in the store (private or public). Even so, when I’ve played around with it, I seem to always get an empty json object back.

Here is what I’m trying:

[store = CreateObject("roChannelStore")channelcredjson = store.GetChannelCred().jsonpucid = "none"if channelcredjson <> invalid and channelcredjson <> ""    channelcredobj = ParseJSON(channelcredjson)    if channelcredobj<>invalid and channelcredobj.roku_pucid<>invalid        pucid = channelcredobj.roku_pucid    end ifend if](https://sdkdocs.roku.com/display/sdkdoc/ifChannelStore#ifChannelStore-GetChannelCred()asObject:i50kmpuw)

When I POST this to my server, pucid == “none”[/font]

You are right – just create a private channel to test this api.