Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
athi_joy
Streaming Star

Device authentication for passing channel certification

 Hi All,

To implement on-device authentication I have download an on-device authentication sample, going through the code I have some doubts please someone helps me out to clarify that. In some places, there are using publisher entitlement link goes here, publisher token key link goes here what is this actually mean? how its get?

for example

function onProductSelected() as void
? "!----------------------new order---------------------!"
? "> onProductSelected"
index = m.productGrid.itemSelected
m.itemSelected = m.productGrid.content.GetChild(index)
? "> selected product code: " m.itemSelected.productCode

' query the publisher server on information on the selected product
#if sampleHardCodedValues
? "< getting publisher information"
m.publisherEntitlement = "true"
m.publisherAccessToken = "TOK8ZQEDDR8AWVJF8AH"
?"< publisher is entitled " m.publisherEntitlement
?"< publisher token: " m.publisherAccessToken
' check roku side if this item has already been purchased
m.store.command = "getPurchases"
#else
makeRequest("url", {uri: "PUBLISHER ENTITLEMENT LINK GOES HERE"}, "getPublisherInfo")
#end if
end function

 

0 Kudos
1 REPLY 1
RokuJonathanD
Community Moderator
Community Moderator

Re: Device authentication for passing channel certification

Hi @athi_joy ,

These are placeholder values for a publisher's authentication and entitlement server URLs. These enable developers to test the sample with the publisher's backend system. 

You can use this sample without these by using the hardcoded values for the access token and email validation flag instead of calls to authentication and entitlement server endpoints. 

0 Kudos